Project

General

Profile

Actions

Bug #13767

closed
RP RP

Encode URL manually if response is recycled

Bug #13767: Encode URL manually if response is recycled

Added by Raf Pauwels over 1 year ago. Updated 9 months ago.

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

100%

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.

RP Updated by Raf Pauwels over 1 year ago Actions #1

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

RM Updated by Romain Mardulyn over 1 year ago Actions #2

  • Assignee set to Romain Mardulyn

RP Updated by Raf Pauwels over 1 year ago Actions #3

  • Status changed from Review to Resolved
  • Assignee changed from Romain Mardulyn to Raf Pauwels

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #4

  • Status changed from Resolved to InProgress

RP Updated by Raf Pauwels about 1 year ago Actions #5

  • Status changed from InProgress to Review
  • Assignee changed from Raf Pauwels to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #6

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Raf Pauwels
  • % Done changed from 0 to 100

RM Updated by Romain Mardulyn 9 months ago Actions #7

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom