Backport of #16890 to stable8 - #17033
Conversation
the user is gone, userExists will not bring him back. But the user's folder needs to be deleted anyway delete user test to take getHome into account to ensure it is also deleted subsequently
|
The user count, at least for the group, doesn't seem to be updated. The rest of the things work fine. |
Perhaps caching? |
|
I doubt it. The "everyone" count updates fine, but the group count not, even after waiting more than 10 minutes. |
|
If the user was deleted from LDAP, it is not supposed to be counted at all anyway (no matter whether he was deleted via ownCloud or not). Or, is it about local groups? |
|
I've checked only LDAP groups. No local groups in the system other than the admin one |
|
Then it is not supposed that anything changes. We do not write to LDAP and only deal with users that are already deleted from LDAP, and so should be their group memberships. |
|
sounds like this has to wait until 8.0.6 ❓ |
|
Tested and works. 👍 |
|
The same as #17034 (comment) applies to this PR. |
|
@jvillafanez please retest with a LDAP user, a home folder naming rule and the deletion of that folder. |
|
👍 |
Backport of #16890 to stable8
|
@blizzz FYI, regarding the supposed bug with the user count, I didn't notice that the member list of the groups didn't get updated on its own after deleting the user; I haven't set the referencial integrity in the LDAP server (openLDAP) so the entry for the user was still in the groups. That explains why the user count didn't get updated. Now you can sleep like a log 😄 |
|
super, thank you @jvillafanez 💤 |

@MorrisJobke @jvillafanez