-
Notifications
You must be signed in to change notification settings - Fork 6.1k
InMemoryUserDetailsManager.updatePassword case-insenstive #6039
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
@dperezcabrera Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@dperezcabrera Thank you for signing the Contributor License Agreement! |
core/src/main/java/org/springframework/security/provisioning/InMemoryUserDetailsManager.java
Show resolved
Hide resolved
core/src/main/java/org/springframework/security/provisioning/InMemoryUserDetailsManager.java
Show resolved
Hide resolved
core/src/main/java/org/springframework/security/provisioning/InMemoryUserDetailsManager.java
Show resolved
Hide resolved
Thanks for the PR @dperezcabrera! Could you please add a test for this? |
I would like to add this change to milestone 5.1.2 if possible. Should I change the origin and destination branch to 5.1.x? |
core/src/test/java/org/springframework/security/core/userdetails/PasswordEncodedUser.java
Outdated
Show resolved
Hide resolved
@dperezcabrera Thanks for the fast turnaround. I have an additional comment on the code. Can you please address that? If you can fix this issue I mentioned above #6039 (comment), I will be glad to backport the fix. |
core/src/test/java/org/springframework/security/core/userdetails/PasswordEncodedUser.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/springframework/security/provisioning/InMemoryUserDetailsManagerTests.java
Show resolved
Hide resolved
c5a9b5f
to
56d81fc
Compare
Previously updatePassword was case sensitive which was inconsistent with the rest of the class. This commit updates updatePassword to be case insensitive. Fixes: gh-6039
Thanks for the PR! This is now merged into master and backported to 5.1.x |
When username is not in lowercase It throws a null pointer exception.