-
Notifications
You must be signed in to change notification settings - Fork 76
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: Implement IGetDisplayNameBackend #771
Conversation
86ece90
to
253d71a
Compare
@@ -328,7 +331,7 @@ public function getDisplayName($uid) { | |||
} | |||
} | |||
|
|||
return false; | |||
return $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.
did you check internal usage of this method? are we somewhere expecting or acting specifically to false
?
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.
All other user backends implement it that way. The interface actually requires a string type and doesn't allow boolean values anymore
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.
No doubt about this, my point was to double check we don't have odd internal behavior that relies on the false.
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.
… but that is not the case ✔️
efeef61
to
0caf43f
Compare
Signed-off-by: Julius Härtl <[email protected]>
0caf43f
to
91e6004
Compare
Amended a fix to another static analysis finding https://github.com/nextcloud/user_saml/actions/runs/6473643774/job/17576817710?pr=771 |
@juliushaertl do we need a backport? |
/backport to stable5.2 |
/backport to stable-5.2 |
Otherwise instanceof checks like https://github.com/nextcloud/server/pull/38298/files#diff-2e1b245993621bf5efdce546bacce8f0e43efb7bc5d0c8d1b8a55f17231c4158R79 would fail