8000 [Security] Improve `LogoutUrlGenerator` exception message by alamirault · Pull Request #48212 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] Improve LogoutUrlGenerator exception message #48212

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

alamirault
Copy link
Contributor
Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #45913
License MIT
Doc PR symfony/symfony-docs#...

With this PR, exception message is different when request is under firewall or not, as suggested in #45913 (comment)

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.2" but it seems your PR description refers to branch "6.3".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

Copy link
Member
@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

As we now split the reasons, we can give even more hints in the old and new error messages. I posted some sample messages, feel free to improve them 🙂

@alamirault
Copy link
Contributor Author

I'm ok with these new messages @wouterj, PR updated

@alamirault alamirault requested review from wouterj and removed request for chalasr November 17, 2022 19:49
Copy link
Member
@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

I'd merge it on 6.2 as a minor enhancement.

@OskarStark OskarStark changed the title [Security] Improve LogoutUrlGenerator exception message [Security] Improve LogoutUrlGenerator exception message Nov 18, 2022
@fabpot
Copy link
Member
fabpot commented Nov 19, 2022

Thank you @alamirault.

fabpot added a commit that referenced this pull request Nov 19, 2022
…e (alamirault)

This PR was squashed before being merged into the 6.2 branch.

Discussion
----------

[Security] Improve `LogoutUrlGenerator` exception message

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #45913  <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

With this PR, exception message is different when request is under firewall or not, as suggested in #45913 (comment)

Commits
-------

59187f2 [Security] Improve `LogoutUrlGenerator` exception message
@fabpot fabpot closed this Nov 19, 2022
@fabpot fabpot force-pushed the feature/45913-improve-logout-url-generator-exception branch from a0eb08f to 59187f2 Compare November 19, 2022 16:09
@alamirault alamirault deleted the feature/45913-improve-logout-url-generator-exception branch November 19, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve a security related exception
6 participants
0