remove uselessly used parameter, read all user attributes also when l… - #20124
Conversation
|
I implemented the changes. The 'missing index: displayname' error is gone now. But i get new errors when the background job is executed.
I get this error for about 4 people who never logged in (=files directory not existent). This is a bit odd, as i would expect to get this for much more users. Only three out of 66 LDAP-Users logged in until now. E.g the following error is logged since the change to 8.2 and has an entry for all the users who have not logged in yet: |
|
Hm, avatars are supposed to be fetched only on login actions anyway. But about opening? Okay, we have encryption playing a part here… Anyway I have a look |
|
Indeed, my bad, missed to request only minimal attributes and the avatars indeed were fetched… |
…ooking up users in groups
8b4181a to
133e3fe
Compare
|
@eidota ok, could you retry? :) |
|
Implemented the change (getAttributes(true);). Will check our logs on monday. |
|
Awesome, thank you |
|
Everything is fine now. Thank you 👍 |
|
The error messages appears, when the background job runs.
|
|
@karlitschek backport ? This is an additional fix for #20093 which will be backported too. |
|
yes. please backport |
|
To clarify: step 3 requires running cron.php as web user ( |
|
@blizzz, yes i have already run it this way. |
|
@davitol You cannot reproduce it, because it only occurs for setups where the user group association attribute is memberUid. In your case it's just member. |
#20093 LDAP fix quota and case #20124 remove uselessly used parameter, read all user attributes also when looking up users in groups fix update quota with known value fix attribute casing to ensure array keys work remove uselessly used parameter, read all user attributes also when looking up users in groups
remove uselessly used parameter, read all user attributes also when l…
|
@blizzz Tested again creating a LDAP posixGroup with a user with his memberUid and I still can't reproduce it 👻 |
…ooking up users in groups
Two improvements based on @eidota 's findings in #20093, see #20093 (comment) and #20093 (comment) for further explanation.
Basically, with the background job or when looking at an LDAP group with users on the Users page, there should not be any undefined index warnings anymore, but email address and co should be fetched this way just as well.
Since it was found after #20093 was merged this is kind of an P.S. to it, and needs to be backported alongside with that. fyi @karlitschek
Please test and review @davitol @eidota @MorrisJobke