Skip to content

[stable30] fix: Make user removal more resilient - #48589

Merged
susnux merged 3 commits into
stable30from
backport/47896/stable30
Oct 17, 2024
Merged

[stable30] fix: Make user removal more resilient#48589
susnux merged 3 commits into
stable30from
backport/47896/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Oct 7, 2024

Copy link
Copy Markdown

Backport of #47896

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@susnux

Copy link
Copy Markdown
Contributor

/cherry-pick 902fb8f

susnuxand others added 3 commits October 8, 2024 21:02
Currently there is a problem if an exception is thrown in `User::delete`,
because at that point the user is already removed from the backend,
but not all data is deleted.
There is no way to recover from this state, as the user is gone no information is available anymore.
This means the data is still available on the server but can not removed by any API anymore.
The solution here is to first set a flag and backup the user home,
this can be used to recover failed user deletions in a way the delete can be re-tried.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@susnux
susnuxforce-pushed the backport/47896/stable30 branch from 97686bb to d10330bCompareOctober 8, 2024 19:02
@susnux
susnux marked this pull request as ready for review October 8, 2024 19:02
This was referenced Oct 10, 2024
@susnux
susnux enabled auto-merge October 17, 2024 12:57
@susnux
susnux merged commit 29a3448 into stable30Oct 17, 2024
@susnux
susnux deleted the backport/47896/stable30 branch October 17, 2024 12:57
@AltahrimAltahrim mentioned this pull request Oct 30, 2024
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@susnux@artonge@blizzz@provokateurin