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

[Security] fix Check if it has session before getSession()#42259

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.3frommousezheng:5.2
Jul 27, 2021

Conversation

@mousezheng
Copy link
Contributor

@mousezhengmousezheng commentedJul 26, 2021
edited by OskarStark
Loading

QA
Branch?5.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#42258
LicenseMIT

Check if it has session before getSession(),for details, seeissues#42258

@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 5.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

@carsonbot
Copy link

Hey!

Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/
Could you update thePR base branch to target one of these branches instead? 4.4, 5.3, 5.4, 6.0.

Cheers!

Carsonbot

@derrabus
Copy link
Member

You've submitted your patch against the 5.4 branch although 5.2 should be the correct target. Can you please rebase your changes?

Furthermore, can you please add a test covering your changes?

@mousezheng
Copy link
ContributorAuthor

@derrabus

The 5.2 version is no longer maintained. So consider upgrading to Symfony 5.3.
I submitted my patch against the 5.3 branch.

And , I already add a test covering my changes. Please advise thanks.

@chalasr
Copy link
Member

Don't this apply toSessionLogoutHandler as well?

@chalasrchalasr removed the request for review fromycerutoJuly 26, 2021 16:26
@fabpotfabpot modified the milestones:5.2,5.3Jul 26, 2021
@derrabus
Copy link
Member

The 5.2 version is no longer maintained.

Yeah, my comment did not age well. 😅 We've just release the final 5.2 release, so 5.3 is the correct target now.

@carsonbotcarsonbot changed the titlefix Check if it has session before getSession()[Security] fix Check if it has session before getSession()Jul 26, 2021
@wouterj
Copy link
Member

Hi@mousezheng! Thanks for preparing this PR so quickly and even writing a test case.

There are some mostly aesthetic suggestions for your test. Don't worry about too much about them, each library has its own unwritten testing practices :)

@mousezheng
Copy link
ContributorAuthor

Don't this apply toSessionLogoutHandler as well?

@chalasrSessionLogoutHandler deprecated since Symfony 5.1. in 4.4 this may be a problem.

@derrabus
Copy link
Member

@chalasrSessionLogoutHandler deprecated since Symfony 5.1.

But that does not mean that we can leave it broken. If it needs to be fixed, we should fix it.

@wouterj
Copy link
Member

But that does not mean that we can leave it broken. If it needs to be fixed, we should fix it.

But we can't include the fix in this PR, as that fix should target 4.4 and not 5.3 :)

derrabus reacted with thumbs up emoji

@derrabus
Copy link
Member

Thank you@mousezheng.

@derrabusderrabus merged commit20d740d intosymfony:5.3Jul 27, 2021
@fabpotfabpot mentioned this pull requestJul 29, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

@derrabusderrabusderrabus approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@OskarStarkOskarStarkAwaiting requested review from OskarStark

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

[SecurityHttp] if don't have session,logout will throw SessionNotFoundException

7 participants

@mousezheng@carsonbot@derrabus@chalasr@wouterj@OskarStark@fabpot

[8]ページ先頭

©2009-2025 Movatter.jp