nextcloud/lib/private/Repair
Ferdinand Thiessen 5d5c307a1a
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 <opensource@fthiessen.de>
2024-10-15 16:50:27 +02:00
..
Events Parameter of RepairAdvanceEvent is actually an increment, not a step id 2022-08-25 16:26:31 +02:00
NC11 composer run cs:fix 2023-01-20 11:45:08 +01:00
NC13 composer run cs:fix 2023-01-20 11:45:08 +01:00
NC14 composer run cs:fix 2023-01-20 11:45:08 +01:00
NC16 Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
NC18 chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
NC20 chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
NC21 chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
NC22 chore: Drop dead private methods in /lib 2023-06-06 11:01:58 +02:00
NC24 Add back TokenCleanupJob to invalidate old temporary tokens 2022-08-25 11:31:21 +02:00
NC25 Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
Owncloud Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobs 2024-02-08 18:27:44 +01:00
AddAppConfigLazyMigration.php feat(appconfig): repair step to migrate lazy config values 2024-03-11 10:59:43 -01:00
AddBruteForceCleanupJob.php composer run cs:fix 2023-01-20 11:45:08 +01:00
AddCleanupDeletedUsersBackgroundJob.php fix: Make user removal more resilient 2024-10-15 16:50:27 +02:00
AddCleanupUpdaterBackupsJob.php composer run cs:fix 2023-01-20 11:45:08 +01:00
AddMetadataGenerationJob.php Add metadata generation job 2023-11-16 15:02:38 +01:00
AddRemoveOldTasksBackgroundJob.php Implement TextToImage OCP API 2023-10-18 13:21:50 +02:00
CleanTags.php composer run cs:fix 2023-01-20 11:45:08 +01:00
CleanUpAbandonedApps.php unbundle files_videoplayer and clean up a little 2022-09-29 12:11:37 +02:00
ClearFrontendCaches.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
ClearGeneratedAvatarCache.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
ClearGeneratedAvatarCacheJob.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
Collation.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
MoveUpdaterStepFile.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
OldGroupMembershipShares.php composer run cs:fix 2023-01-20 11:45:08 +01:00
RemoveLinkShares.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
RepairDavShares.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
RepairInvalidShares.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
RepairLogoDimension.php fix(theming): Make getImage() call save against missing non-SVG version 2024-08-21 10:04:54 +00:00
RepairMimeTypes.php fix(setupcheck): Fix mimetype server version check in backport 2024-08-21 10:25:23 +02:00