Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJul 26, 2021
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 |
carsonbot commentedJul 26, 2021
Hey! Oh no, it looks like you have made this PR towards a branch that is not maintained anymore. :/ Cheers! Carsonbot |
derrabus commentedJul 26, 2021
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? |
7dcac82 to3e040efComparemousezheng commentedJul 26, 2021
The 5.2 version is no longer maintained. So consider upgrading to Symfony 5.3. And , I already add a test covering my changes. Please advise thanks. |
chalasr commentedJul 26, 2021
Don't this apply to |
src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
derrabus commentedJul 26, 2021
Yeah, my comment did not age well. 😅 We've just release the final 5.2 release, so 5.3 is the correct target now. |
src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/Tests/EventListener/SessionLogoutListenerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
wouterj commentedJul 26, 2021
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 commentedJul 27, 2021
@chalasr |
derrabus commentedJul 27, 2021
But that does not mean that we can leave it broken. If it needs to be fixed, we should fix it. |
wouterj commentedJul 27, 2021
But we can't include the fix in this PR, as that fix should target 4.4 and not 5.3 :) |
derrabus commentedJul 27, 2021
Thank you@mousezheng. |
Uh oh!
There was an error while loading.Please reload this page.
Check if it has session before getSession(),for details, seeissues#42258