-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel][Security] Fix accessing session for stateless request #57372
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
Conversation
7b6c48a
to
c195c3b
Compare
Ready to review @OskarStark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't this check be done inside the $request 's session accessing logic ?
perhaps unrelated but I think that like this, codebase may evolve with addition of session code without this check so it will come back again no ?
c195c3b
to
40341a1
Compare
Thank you @VincentLanglet. |
I have a similar PR created 2 months ago: #54742 |
I'm getting some
Session was used while the request was declared stateless.
warning on my project.When throwing an error in the
getSession
method, I found 3 places where the getSession were used without any check about the stateless state of the request.