Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Closed

Conversation

@DaDeather
Copy link
Contributor

QA
Branch6.3
Bug fixyes
New featureno
Deprecationsno
TicketsFix#46743
LicenseMIT

Fix removing the\Symfony\Component\HttpFoundation\Request from\Symfony\Component\HttpFoundation\RequestStack when using\Symfony\Component\HttpFoundation\StreamedResponse.

@carsonbot
Copy link

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:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.4 branch.

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!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@DaDeatherDaDeatherforce-pushed thefix-httpkernel-issue-46743 branch 2 times, most recently from8f9efc0 toecad2c4CompareJuly 28, 2023 07:51
@DaDeatherDaDeatherforce-pushed thefix-httpkernel-issue-46743 branch fromecad2c4 to63a8b3eCompareJuly 28, 2023 07:53
@OskarStarkOskarStark changed the title[HttpKernel] Fix missing Request in RequestStack for StreamedResponse[HttpKernel] Fix missingRequest inRequestStack forStreamedResponseAug 2, 2023
@DaDeather
Copy link
ContributorAuthor

Any news on this happening? Or are any adjustments necessary?

@derrabus
Copy link
Member

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
Copy link
Member

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 reacted with thumbs up emoji

@DaDeatherDaDeather deleted the fix-httpkernel-issue-46743 branchAugust 15, 2023 07:37
@DaDeather
Copy link
ContributorAuthor

Here we go:#51391

@nicolas-grekas
Copy link
Member

That's the way forward, see#51391 (comment)

nicolas-grekas added a commit that referenced this pull requestAug 16, 2023
…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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

4 participants

@DaDeather@carsonbot@derrabus@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp