-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix issues where some user settings cannot be loaded when the user id… #25686
Conversation
@DeepDiver1975, thanks for your PR! By analyzing the annotation information on this pull request, we identified @icewind1991, @blizzz and @LukasReschke to be potential reviewers |
@@ -156,6 +156,11 @@ protected function getUserObject($uid, $backend, $cacheUser = true) { | |||
return $this->cachedUsers[$uid]; | |||
} | |||
|
|||
$uid = $backend->loginName2UserName($uid); | |||
if (isset($this->cachedUsers[$uid])) { |
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.
@DeepDiver1975 what's the reason behind searching the cache twice?
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.
Second time is done because of uid was remapped in the loginname2username call.
Lets say the user name is VicDeo but you Login with vicdeo: first time uid is vicdeo - second time uid is VicDeo
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.
@DeepDiver1975 Thus cache keys VicDeo and vicdeo will return two different objects.
Looks like some mess still left due to this.
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.
should we do a case insensitive search in the cache - it that what you are proposing.
f37f480
to
d8a6596
Compare
… differs in case sensitivity - fixes #25684
d8a6596
to
33e782b
Compare
@VicDeo please rereview, comments were addressed I think |
👍 Works |
@PVince81 shall we backport this - this is biting our user base since ever .... |
@DeepDiver1975 I'd say backport at least to 9.1.1. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
… differs in case sensitivity - fixes #25684