Skip to content

Conversation

@reiern70
Copy link
Contributor

…n a situation when there is no session (e.g. some stateless page).

@reiern70 reiern70 requested a review from martin-g August 11, 2025 17:36

if (httpSession == null)
{
this.contextPath = "/";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-g I'm not sure this is correct or if this path is used anywhere else.. I was looking into code base and didn't see any other object from where we could take the path. We are getting this NPE from time to time on our test severs...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure either. It should be OK.

userProperties.put("session", httpSession);
userProperties.put(JavaxUpgradeHttpRequest.SESSION, httpSession);
} else {
sec.getPath();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unused

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it is


if (httpSession == null)
{
this.contextPath = "/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure either. It should be OK.

if (requestURI != null)
{
userProperties.put("requestURI", requestURI);
String path = requestURI.getPath();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-g I think this should always work.

@reiern70 reiern70 requested a review from martin-g August 12, 2025 15:38
…n a situation when there is no session (e.g. some stateless page) and extract context from requestedUI
@reiern70 reiern70 force-pushed the reiern70/WICKET-7162 branch from d531a56 to c574107 Compare August 12, 2025 16:58
@reiern70 reiern70 merged commit 5f737e7 into master Aug 12, 2025
3 checks passed
@martin-g martin-g deleted the reiern70/WICKET-7162 branch January 22, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants