-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Set NullRequestCache when session management disabled #13553
Set NullRequestCache when session management disabled #13553
Conversation
@dukcode Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@dukcode Thank you for signing the Contributor License Agreement! |
Hi @dukcode, have you discussed this with the team before submitting the PR? Asking because I do not think that we want to do this since |
Hi @marcusdacoregio! In When we set However, when we set So I think it should work in same way in both config situation. |
This is expected based on what I mentioned before, you are disabling session management but are keeping the defaults of the other configurations. If you do not want to have sessions at all, just set it to |
We are seeing the requestcache draining our form data when looking for continue. It looks similar to what issue 13731 is seeing. Our current solution is to disable the optimization and get it back to 5.8 behavior. You can't drain the input stream looking for something that isn't there. We would like to know if we can fix this through configuration. We use XML and not annotations. From the Jakarta Javadoc: |
I will close this with what was mentioned in this comment. @dc-oe it sounds like the bug is not related to this PR, can you add your comments to #13731 if they are related or open a new issue? |
When I configure
sessionManagement
toSTATELESS
like upper code, spring-security setsRequestCache
ofExceptionTranslationFilter
toNullRequestCache
like next image.But when I configure
sessionManagement
disabled,RequestCache
ofExceptionTranslationFilter
isHttpSessionRequestCache
. Please see image and output from Spring Security debug mode.I think that
RequestCache
should beNullRequestCache
.