-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix some ldap related issues #30201
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 some ldap related issues #30201
Conversation
c8d90ec to
b7d1a52
Compare
|
Apart from the docblock remark, everything in there seems to improve the situation. |
Signed-off-by: Carl Schwan <[email protected]>
Currently the check if an object is in intermediates is done using
group-{gid} for groups but only user- for users. This change the check
for user to user-{uid}.
This fix the listing of users in a group in the users settings.
Signed-off-by: Carl Schwan <[email protected]>
This fixes some cases observed with the debugger where we end up merging a non empty list with null. The result is then null and the looping over the items would then end. Signed-off-by: Carl Schwan <[email protected]>
b7d1a52 to
68fbe7b
Compare
|
(Lots of psalm error through, please look into them as you added typing they may unravel real problems) |
|
The psaml errors are unfortunately normal in stable20 and earlier. There are none in the master equivalent of this: #30223 |
| * @throws Exception | ||
| */ | ||
| private function getNameOfGroup(string $filter, string $cacheKey) { | ||
| private function getNameOfGroup(string $filter, string $cacheKey): ?string { |
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.
apps/user_ldap/lib/Group_LDAP.php#L472
The declared return type 'null|string' for OCA\User_LDAP\Group_LDAP::getNameOfGroup does not allow false, but the function returns 'false|string'
This included three commits, see individual commit message for more in-depth explaination