nextcloud/lib/private
Ferdinand Thiessen 7dd85e15b9
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-08 21:02:07 +02:00
..
Accounts feat(ldap): sync additional properties to profile and SAB 2024-05-30 12:01:13 +02:00
Activity fix(activity): regroup Files and spltit sharing activity 2024-08-01 11:03:24 +02:00
App fix(appstoreFetcher): get app list from custom app store 2024-09-17 09:23:02 +00:00
AppFramework fix(BaseResponse): Cast XML element values to string 2024-09-15 17:18:33 +00:00
Archive chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Authentication fix: Make user removal more resilient 2024-10-08 21:02:07 +02:00
Avatar fix: use different file name for generated dark avatars 2024-05-26 17:32:10 +02:00
BackgroundJob fix: Use sha256 to hash arguments of background jobs 2024-09-05 15:58:45 +00:00
Blurhash/Listener fix: don't persist previews used during blurhash generation 2024-07-30 09:09:26 +02:00
Broadcast/Events chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Cache Merge branch 'master' into refactor/OC-Server-getSecureRandom 2024-05-30 14:24:22 +02:00
Calendar feat(dav): Add an API for upcoming events 2024-08-13 20:03:31 +02:00
Collaboration feat(Reference): Add public API endpoints to get references 2024-07-17 12:56:41 +02:00
Command chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Comments fix(Comment): Initialize childrenCount as integer 2024-09-15 15:51:01 +00:00
Console chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Contacts/ContactsMenu chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Dashboard fix(dashboard): Document expected icon behaviour 2024-07-11 13:14:03 +00:00
DB fix(QueryBuilder): Account for aliases in output columns 2024-10-03 13:49:00 +00:00
Diagnostics feat(log): Allow to combine log.conditions to only log (app&user) 2024-07-30 13:18:09 +02:00
DirectEditing chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Encryption Merge branch 'master' into refactor/OC-Server-getEncryptionFilesHelper 2024-06-04 15:47:48 +02:00
EventDispatcher chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Federation fix(federation): Fix missing protocol on CloudID remote 2024-06-27 11:26:08 +02:00
Files Merge pull request #48077 from nextcloud/backport/47852/stable30 2024-10-02 10:43:41 +02:00
FilesMetadata fix: Prevent crash when refreshing metadata for files without an owner 2024-10-02 09:21:44 +02:00
FullTextSearch chore: Add SPDX header 2024-05-24 13:11:22 +02:00
GlobalScale chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Group fix: Ensure database connection is setup when getting group details 2024-08-06 13:41:04 +02:00
Hooks chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Http chore: Add SPDX header 2024-05-24 13:11:22 +02:00
IntegrityCheck fix: skip the integrity check for nextcloud-init-sync.lock 2024-09-23 15:51:42 +00:00
KnownUser chore: Add SPDX header 2024-05-24 13:11:22 +02:00
L10N feat: reduce available languages per config value "reduce_to_languages" 2024-07-01 09:34:11 +02:00
LDAP chore: Add SPDX header 2024-05-24 13:11:22 +02:00
legacy fix(Auth): ignore missing token when trying to set password-unconfirmable 2024-10-01 13:48:57 +00:00
Lock chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Lockdown refactor(Token): introduce scope constants 2024-06-05 19:01:14 +02:00
Log chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Mail fix call to custom mail_template_class 2024-08-26 06:59:31 +00:00
Memcache fix: misc code fixes around db sharding 2024-09-16 12:19:20 +02:00
Migration fix(migration-preview): display a message if no attributes set 2024-08-06 22:23:12 -01:00
Net chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Notification chore: Add SPDX header 2024-05-24 13:11:22 +02:00
OCM chore: Add SPDX header 2024-05-24 13:11:22 +02:00
OCS chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Preview fix: misc code fixes around db sharding 2024-09-16 12:19:20 +02:00
Profile chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Profiler chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Remote chore: fix some comments 2024-07-29 14:43:27 +08:00
Repair fix: Make user removal more resilient 2024-10-08 21:02:07 +02:00
RichObjectStrings chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Route fix(Router): Load attribute routes of all apps when not app is specified 2024-08-27 10:51:52 +00:00
Search chore: Remove deprecated legacy search backend 2024-08-01 12:33:18 +02:00
Security fix: gracefully parse non-standard trusted certificates 2024-09-30 09:11:42 +02:00
Session fix(setup): ignore long session login during installation 2024-08-27 19:14:03 +00:00
Settings chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Setup Merge branch 'master' into refactor/OC-Server-getSecureRandom 2024-05-30 14:24:22 +02:00
SetupCheck chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Share chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Share20 fix(share): Ensure unique share tokens 2024-09-25 09:39:51 +02:00
SpeechToText fix(SpeechToTextManager): Throw TaskProcessing Task failed 2024-08-30 14:06:15 +02:00
Support chore: Add SPDX header 2024-05-24 13:11:22 +02:00
SystemTag fix: removed unused variable and check if tag ids are empty before starting the inserts 2024-06-19 12:52:46 +02:00
Tagging chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Talk chore: Add SPDX header 2024-05-24 13:11:22 +02:00
TaskProcessing fix(TaskProcessing\Manager): Don't provoke PHP notice in setTaskResult 2024-10-02 07:57:16 +00:00
Teams fix: Avoid throwing errors for teams are unavailable 2024-06-24 12:29:43 +02:00
Template feat: Provide CSP nonce as <meta> element 2024-08-13 10:32:44 +02:00
TextProcessing fix(TextProcessing): Don't run taskProcessing if task type is not available 2024-08-30 14:06:15 +02:00
TextToImage chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Translation chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Updater feat(migration-attributes): tests 2024-07-29 12:44:52 -01:00
User fix: Make user removal more resilient 2024-10-08 21:02:07 +02:00
UserStatus chore: Add SPDX header 2024-05-24 13:11:22 +02:00
AllConfig.php fix(config): Throw PreconditionException always when it didn't match 2024-09-13 11:40:13 +00:00
AppConfig.php fix(config): Mark more app configs sensitive 2024-10-07 09:00:48 +00:00
AppScriptDependency.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
AppScriptSort.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
BinaryFinder.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
CapabilitiesManager.php perf(capabilities): Log capabilities providers that are slow 2024-06-21 11:41:22 +02:00
Color.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Config.php fix(config): Suppress error at install time 2024-10-01 16:24:11 +00:00
ContactsManager.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
DatabaseException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
DatabaseSetupException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
DateTimeFormatter.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
DateTimeZone.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
EmojiHelper.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
EventSource.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
EventSourceFactory.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
ForbiddenException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
HintException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
InitialStateService.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Installer.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
LargeFileHelper.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Log.php feat(log): Allow to combine log.conditions to only log (app&user) 2024-07-30 13:18:09 +02:00
MemoryInfo.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
NaturalSort.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
NaturalSort_DefaultCollator.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
NavigationManager.php fix(NavigationManager): Make entry order always an integer 2024-05-30 17:00:32 +02:00
NeedsUpdateException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
NotSquareException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
PhoneNumberUtil.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
PreviewManager.php feat(preview): move previews for imaginary pdf to own class ImaginaryPDF 2024-07-25 17:01:01 +02:00
PreviewNotAvailableException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
RedisFactory.php feat: add config flag to toggle persistent redis connections 2024-07-22 14:25:20 +02:00
Repair.php fix: Make user removal more resilient 2024-10-08 21:02:07 +02:00
RepairException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Server.php fix(theming): Use AppConfig for setting background image 2024-10-02 09:21:57 +02:00
ServerContainer.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
ServerNotAvailableException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
ServiceUnavailableException.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Setup.php fix: Make user removal more resilient 2024-10-08 21:02:07 +02:00
Streamer.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
StreamImage.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
SubAdmin.php feat(users): Add support for admin delegation for users and groups management 2024-07-22 17:17:35 +02:00
SystemConfig.php fix: mark systemconfig value as not being tainted because they are implicitly trusted 2024-08-28 14:54:14 +02:00
TagManager.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Tags.php fix(Tags): Return boolean for userHasTags() 2024-09-15 15:52:40 +00:00
TemplateLayout.php fix: Support Safari mobile 2024-08-21 12:33:53 +00:00
TempManager.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Updater.php fix(SetupCheck): Properly check public access to data directory 2024-08-08 22:08:42 +02:00
URLGenerator.php fix(setup-checks): Ensure URL with webroot works 2024-09-15 21:40:27 +02:00