nextcloud/tests/lib
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 chore: Add SPDX header 2024-05-13 17:41:36 +02:00
App fix: Add whiteboard to education and public sector bundle 2024-09-12 09:08:22 +00:00
AppFramework fix(Entity): Fix magic setter call for custom strong typed setters 2024-09-16 13:52:27 +00:00
Archive chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Authentication feat(auth): Clean-up unused auth tokens and wipe tokens 2024-08-13 12:39:11 +02:00
Avatar chore: Add SPDX header 2024-05-13 17:41:36 +02:00
BackgroundJob test: update DummyJobList 2024-05-30 15:07:39 +02:00
Cache chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Calendar feat: implement public OCP api to update resources and rooms 2024-05-27 18:45:52 +02:00
Collaboration fix(federation): Fix missing protocol on CloudID remote 2024-06-27 11:26:08 +02:00
Command refactor: simplify background commands 2024-07-01 12:52:06 +02:00
Comments chore: Move comments event handler to use proper event dispatcher 2024-06-26 18:13:07 +02:00
Contacts/ContactsMenu chore: Add SPDX header 2024-05-13 17:41:36 +02:00
DB fix: misc code fixes around db sharding 2024-09-16 12:19:20 +02:00
Diagnostics chore: Add SPDX header 2024-05-13 17:41:36 +02:00
DirectEditing chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Encryption chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Federation fix(federation): Fix missing protocol on CloudID remote 2024-06-27 11:26:08 +02:00
Files fix(users): Don't crash if disabled user is missing in the database 2024-09-23 18:06:38 +02:00
GlobalScale chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Group feat(users): Add support for admin delegation for users and groups management 2024-07-22 17:17:35 +02:00
Hooks chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Http chore: Add SPDX header 2024-05-13 17:41:36 +02:00
IntegrityCheck chore: Add SPDX header 2024-05-22 19:58:12 +02:00
L10N feat: reduce available languages per config value "reduce_to_languages" 2024-07-01 09:34:11 +02:00
Lock chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Lockdown refactor(Token): introduce scope constants 2024-06-05 19:01:14 +02:00
Log chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Mail feat: mail provider backend 2024-07-23 16:20:36 -04:00
Memcache fix: delay calculating global cache prefix untill a cache is created 2024-08-28 14:54:14 +02:00
Migration chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Net chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Notification chore: Add SPDX header 2024-05-13 17:41:36 +02:00
OCS chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Preview chore: Apply php:cs recommendations 2024-08-28 14:54:14 +02:00
PublicNamespace chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Remote chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Repair test: put parent items into cache in tests 2024-09-19 13:59:08 +02:00
RichObjectStrings chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Route Merge pull request #45228 from smokris/heartbeat-route 2024-06-18 17:29:30 +02:00
Security fix: gracefully parse non-standard trusted certificates 2024-09-30 09:11:42 +02:00
Session fix(session): Log when session_* calls are slow 2024-08-07 09:02:10 +02:00
Settings chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Share chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Share20 test: fix share provider tests for sharding 2024-08-28 14:54:14 +02:00
Support chore: Add SPDX header 2024-05-13 17:41:36 +02:00
SystemTag fix(test): Make the test less flaky 2024-07-19 11:21:16 +02:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TaskProcessing fix(TaskProcessing): Fix namespace of TaskProcessingTest.php 2024-08-30 14:06:15 +02:00
Template chore: Add SPDX header 2024-05-22 19:58:12 +02:00
TextProcessing fix(taskprocessing): fix tests 2024-08-30 14:06:15 +02:00
Traits chore: Add SPDX header 2024-05-13 17:41:36 +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
Util chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AllConfigTest.php fix(config): Throw PreconditionException always when it didn't match 2024-09-13 11:40:13 +00:00
APITest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AppConfigTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AppScriptSortTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AppTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AutoLoaderTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
CapabilitiesManagerTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ConfigTest.php fix(config): add envCache tests for getKeys() 2024-09-16 15:06:03 +00:00
ContactsManagerTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
DateTimeFormatterTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
EmojiHelperTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ErrorHandlerTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
EventSourceFactoryTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
HelperStorageTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
HookHelper.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ImageTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
InfoXmlTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
InitialStateServiceTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
InstallerTest.php Merge branch 'master' into refactor/OC-Server-getHTTPClientService 2024-05-30 14:21:45 +02:00
LargeFileHelperGetFileSizeTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
LargeFileHelperTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
LegacyHelperTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
LoggerTest.php feat(log): Allow to combine log.conditions to only log (app&user) 2024-07-30 13:18:09 +02:00
MemoryInfoTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
NaturalSortTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
NavigationManagerTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
RepairTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ServerTest.php fix(tests): Remove deprecated tests for ServerTest 2024-09-19 14:24:22 +02:00
SetupTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
SubAdminTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TagsTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TemplateFunctionsTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TempManagerTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TestCase.php feat: implement distributing partitioned queries over multiple shards 2024-08-28 14:54:14 +02:00
TestMoveableMountPoint.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
UpdaterTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
UrlGeneratorTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
UtilCheckServerTest.php fix(SetupCheck): Properly check public access to data directory 2024-08-08 22:08:42 +02:00
UtilTest.php fix(SetupCheck): Properly check public access to data directory 2024-08-08 22:08:42 +02:00