Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix broken request stack state if throwable is thrown.#47358
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
39674e0 tof55c39dCompare
fabpot left a comment
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.
Makes sense to me. Can you add some tests?
Warxcell commentedAug 22, 2022
Added tests, tho I'm not quite sure what's the best way to throw Throwable. |
b1a7414 toeb4b5aaCompareUh oh!
There was an error while loading.Please reload this page.
4a3802a to9512ce0Comparestof commentedAug 22, 2022
Instead of a test requiring a file with a syntax error, it would be simpler to make a function trigger a |
9512ce0 toe5c4190CompareWarxcell commentedAug 22, 2022
Ah yes, totally forgot about it. Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
e5c4190 toe35d6baComparefabpot commentedAug 23, 2022
Thank you@Warxcell. |
… exception (krzyc)This PR was squashed before being merged into the 4.4 branch.Discussion----------[HttpKernel] Fix empty request stack when terminating with exception| Q | A| ------------- | ---| Branch? | 4.4, 5.4, 6.0, 6.1, 6.2| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |Fix#47577| License | MIT| Doc PR |After#47358 the RequestStack is empty when request terminates with exception, which prevents SecurityDataCollector to generate logout URL and generates fatal error.Commits-------e4d6e7b [HttpKernel] Fix empty request stack when terminating with exception
… exception (krzyc)This PR was squashed before being merged into the 4.4 branch.Discussion----------[HttpKernel] Fix empty request stack when terminating with exception| Q | A| ------------- | ---| Branch? | 4.4, 5.4, 6.0, 6.1, 6.2| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets | Fix #47577| License | MIT| Doc PR |Aftersymfony/symfony#47358 the RequestStack is empty when request terminates with exception, which prevents SecurityDataCollector to generate logout URL and generates fatal error.Commits-------e4d6e7b4ba [HttpKernel] Fix empty request stack when terminating with exception
Uh oh!
There was an error while loading.Please reload this page.
When using long-running server (like roadrunner) if Throwable is thrown - requestStack is never pop out and it stays in broken state and next requests receive previous request object.