Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Fix missingRequest inRequestStack forStreamedResponse#51139
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
carsonbot commentedJul 28, 2023
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
8f9efc0 toecad2c4Compareecad2c4 to63a8b3eCompareRequest inRequestStack forStreamedResponseDaDeather commentedAug 11, 2023
Any news on this happening? Or are any adjustments necessary? |
derrabus commentedAug 11, 2023
Sorry that nobody has picked up your PR yet. What I dislike about the proposed change is that the kernel is made aware of a specific response class and adds edge-case behavior to the request stack based on that. From my PoV, it's totally reasonable that the request stack is empty at this point. If we've caused trouble for projects upgrading from Symfony 6.1, we need to find a solution, but I don't think we should pull this kind of logic into Symfony 7. 😕 @nicolas-grekas Can you take a look please? |
nicolas-grekas commentedAug 14, 2023
Thanks for the PR and the details in the issue. I think we completely missed this consequence. It'd be fine reverting#45476, and adding also a test case that covers this situation so that we won't forget about the use case again. @DaDeather up to submit a PR doing so? I'm closing this one meanwhile as I agree with@derrabus, that's not the approach we should merge. |
DaDeather commentedAug 15, 2023
Here we go:#51391 |
nicolas-grekas commentedAug 16, 2023
That's the way forward, see#51391 (comment) |
…medResponse (Ismail Turan)This PR was merged into the 6.3 branch.Discussion----------[HttpKernel] Fix missing Request in RequestStack for StreamedResponse| Q | A| ------------- | ---| Branch? | 6.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |Fix#46743| License | MIT| Doc PR | -Similar to#51139 by `@DaDeather`, see discussion there.Commits-------ca1c40e [HttpKernel] Fix missing Request in RequestStack for StreamedResponse
Fix removing the
\Symfony\Component\HttpFoundation\Requestfrom\Symfony\Component\HttpFoundation\RequestStackwhen using\Symfony\Component\HttpFoundation\StreamedResponse.