Get user home folder before deletion#26848
Conversation
After the deletion getHome() will fail because the user doesn't exist any more, so we need to fetch that value earlier.
|
@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @butonic, @DeepDiver1975 and @bartv2 to be potential reviewers. |
|
Note that this might not be reproducible in LDAP cases because for LDAP the user is rather deleted from within LDAP. It could happen however than after the LDAP user becomes a "remnant", deleting using Would be good to test that manually too @davitol @SergioBertolinSG |
|
Besides what @PVince81 mentioned about possible LDAP problems: 👍 |
|
👍 |
|
stable9.1: #27492 |
|
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. |
Description
After the deletion getHome() will fail because the user doesn't exist
any more, so we need to fetch that value earlier.
Related Issue
Discovered while looking into #26846
Motivation and Context
How Has This Been Tested?
Fix was tested by applying it on top of #26846.
To test manually, use the MD5 getHome hack from 67dbcdc, then delete a user who has already logged in once.
Before the fix: home folder (md5) is not correctly deleted.
After the fix: home folder (md5) is still deleted.
Screenshots (if appropriate):
Types of changes
Checklist:
Please review @owncloud/qa @butonic @DeepDiver1975 @VicDeo