-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DoctrineBridge] fix case sensitivity issue in RememberMe\DoctrineTokenProvider #27314
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
PF4Public
commented
May 19, 2018
•
edited by nicolas-grekas
Loading
edited by nicolas-grekas
Q | A |
---|---|
Branch? | 2.8 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | ? |
Fixed tickets | #21467 |
License | MIT |
Doc PR | - |
Hi @PF4Public, thanks for you PR. Would you mind rebasing/retargetting for branch 2.7? 2.3 is not maintained anymore and 2.7 will go out of maintenance in 10 days btw) |
Hi @nicolas-grekas |
We now need to figure out how not to break existing apps. |
Should I rebase it against newest version, which allows BC breaks? |
We always strive for creating a continuous upgrade path so that there is never a hard BC break. This means e.g. triggering a deprecation notice when applicable, etc. |
How can we move forward here? |
Since this change could in fact break existing installations, it probably needs to be done in two steps: with deprecation notice first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a new fix for this issue on your fork.
PR ready.
@nicolas-grekas , Thank you for fixing this. You've found a really clever way! |
@@ -50,15 +50,16 @@ public function __construct(Connection $conn) | |||
*/ | |||
public function loadTokenBySeries($series) | |||
{ | |||
$sql = 'SELECT class, username, value, lastUsed' | |||
// the alias for lastUsed works around case insensitivity in PostgreSQL | |||
$sql = 'SELECT class, username, value, lastUsed as last_used' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AS
?
Thank you @PF4Public. |
…DoctrineTokenProvider (PF4Public) This PR was merged into the 2.8 branch. Discussion ---------- [DoctrineBridge] fix case sensitivity issue in RememberMe\DoctrineTokenProvider | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | ? | Fixed tickets | #21467 | License | MIT | Doc PR | - Commits ------- 0248d4f [DoctrineBridge] fix case sensitivity issue in RememberMe\DoctrineTokenProvider
…h postgres connection (GromNaN) This PR was merged into the 5.4 branch. Discussion ---------- [DoctrineBridge] Add integration test for RememberMe with postgres connection | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Related to - #27314 - #58523 Commits ------- ca417c0 Add integration test for RememberMe with pg connection