-
Notifications
You must be signed in to change notification settings - Fork 38.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsessionid breaks request mappings when removeSemicolonContent is turned off #25864
Comments
The commit was meant to be self-sufficient with jsessionId simply ignored later when injecting As a workaround in the mean time probably best to insert your own |
Makes sense 👍 And thank you for the quick fix. |
Affects: v5.2.9 (and probably v5.3.0)
In our project, we setup the
UrlPathHelper
to not remove semicolon content, because we want to use matrix variables. Until and including v5.2.8, thejsessionid
parameter was still removed from URLs. The parameter is injected into the URL by servlet containers if cookies cannot be used for session tracking (e.g. because the client doesn't accept cookies) or if the server was configured explicitly to use the URL for session tracking.Starting with v5.2.9, the parameter is not removed anymore, which breaks our request mappings: For example a request to
/data;jsessionId=1234
cannot be mapped to the endpoint with the@RequestMapping("/data")
because of the additionaljsessionid
parameter and the result is an HTTP status 404 (Not Found).The change was introduced with commit 899761f0a8890353dc01f10d2af96ae192f3e655 where the
removeJsessionid()
method was removed without (obvious) replacement.Thx for your help to make the request mappings work again.
The text was updated successfully, but these errors were encountered: