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 wrong usage of SessionUtils::popSessionCookie#44437

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

Merged
derrabus merged 1 commit intosymfony:5.4fromsimonchrz:fix_44434
Dec 6, 2021
Merged

[HttpKernel] Fix wrong usage of SessionUtils::popSessionCookie#44437

derrabus merged 1 commit intosymfony:5.4fromsimonchrz:fix_44434
Dec 6, 2021

Conversation

@simonchrz
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#44434
LicenseMIT

The function onKernelResponse() removes possible Set-Cookie headers from headers_list by using SessionUtils::popSessionCookie($sessionName, $sessionCookiePath);
https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php#L149

2nd expected parameter of SessionUtils::popSessionCookie function is the sessionId, not the $sessionCookiePath
https://github.com/symfony/symfony/blob/v5.4.0/src/Symfony/Component/HttpFoundation/Session/SessionUtils.php#L28

alexander-schranz and ging-dev reacted with thumbs up emojialexander-schranz and ging-dev reacted with heart emojiderrabus and ging-dev reacted with eyes emoji
@carsonbotcarsonbot added this to the5.4 milestoneDec 3, 2021
@carsonbotcarsonbot changed the titleFix 44434[HttpKernel] Fix 44434Dec 3, 2021
@simonchrz
Copy link
ContributorAuthor

@alexander-schranz could you please check if this works for you on#41390 ?

@carsonbot
Copy link

Hey!

I think@mtarld has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@chalasrchalasr changed the title[HttpKernel] Fix 44434[HttpKernel] Fix wrong usage of SessionUtils::popSessionCookieDec 5, 2021
Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@alexander-schranz Since this changes code you've contributed, can you please verify that this change works for you?

Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM as well

Copy link
Contributor

@alexander-schranzalexander-schranz left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks correct for me. Did test it also withroadrunner on symfony demo and the php runtime. Session there works still as expected.

simonchrz reacted with thumbs up emoji
@derrabus
Copy link
Member

Thank you@simonchrz for taking care of this regression.

@derrabusderrabus merged commitcd3dddf intosymfony:5.4Dec 6, 2021
@alexander-schranz
Copy link
Contributor

@simonchrz Thx for fixing this 👍

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@alexander-schranzalexander-schranzalexander-schranz approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

6 participants

@simonchrz@carsonbot@derrabus@alexander-schranz@chalasr@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp