Project

General

Profile

Actions

Bug #13767

open

Encode URL manually if response is recycled

Added by Raf Pauwels about 1 month ago. Updated 16 days ago.

Status:
Review
Priority:
Normal
Target version:
Start date:
06/05/2025
Due date:
% Done:

0%

Estimated time:

Description

In JWt, WebSession::appendSessionQuery() will manually construct and encoded URL if the response is null.
Some servlet containers invalidate Request and Response objects to be reused later, but do not discard them, for efficiency. Tomcat 9.0.35, for example, will throw a NullPointerException when calling most of the methods on the object, while Tomcat 9.0.105 will catch this case specifically and throw an IllegalStateException when trying to use any of the methods.

We can catch these cases and handle them just as where the Response would be null.

Actions #1

Updated by Raf Pauwels about 1 month ago

  • Status changed from InProgress to Review
  • Assignee deleted (Raf Pauwels)
Actions #2

Updated by Romain Mardulyn 16 days ago

  • Assignee set to Romain Mardulyn
Actions

Also available in: Atom PDF