Skip to content
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

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

Merged
merged 3 commits into from
Oct 17, 2024

Commits on Oct 8, 2024

  1. fix: Make user removal more resilient

    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 <[email protected]>
    susnux committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    7dd85e1 View commit details
    Browse the repository at this point in the history
  2. fix: Skip users that still exist in backend

    Signed-off-by: Ferdinand Thiessen <[email protected]>
    susnux committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    198c2d3 View commit details
    Browse the repository at this point in the history
  3. fix(UserTrait): Fix backend initialization

    Signed-off-by: provokateurin <[email protected]>
    provokateurin authored and susnux committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    d10330b View commit details
    Browse the repository at this point in the history