-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[3.1] Regression in stateless firewall, session is initialized #18951
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
Comments
I've tagged this |
Oh, and by the way, here's the dump of
|
is the session system enabled in FrameworkBundle or no ? It would be useful to dump what the session contains too (using the profiler to access it in your test might work). This would help seeing what triggers this. |
I've been a bit too fast... session is added in tests and dev/prod environments (I said only tests previously), whereas I specify in my firewall that it is stateless. I created a reproducer:
You should see
See the |
The reproducer is in this single commit romainneutron/symfony-issue-18951@9a323b0 |
@romainneutron this does not answer my question about what is using the session. It may not be the firewall at all. |
Session is enabled in the framework, yes. |
than, please answer the second half of my comment, i.e. checking what got stored in the session |
another idea would be to look at what called |
Here is backtrace in dev mode:
|
…ssion (romainneutron) This PR was merged into the 3.1 branch. Discussion ---------- [3.1][HttpKernel] Fix RequestDataCollector starting the session | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18951 | License | MIT The RequestDataCollector starts a non-started session on kernel response. This produces bug #18951 I'm not sure if this is the right fix, let's discuss it. Commits ------- ab62dcf [HttpKernel] Fix RequestDataCollector starting the session
I have a stateless API endpoint:
When I do calls on this API, everything work as expected, no cookies.
But when testing, this fails:
The issue does not exist in 3.0
The text was updated successfully, but these errors were encountered: