nextcloud/tests/lib
Ferdinand Thiessen 16833aff86
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-09-26 20:48:37 +02:00
..
Accounts fix(settings): pronouns UsersControllerTest 2024-09-18 13:30:33 +02:00
Activity fix: Adapt notifications and activity tests to new DI dependency 2024-09-17 15:28:09 +02:00
App chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
AppFramework chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Archive chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Authentication chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Avatar refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
BackgroundJob refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Cache refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Calendar refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Collaboration chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Command refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Comments chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Contacts/ContactsMenu refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
DB Merge pull request #47852 from nextcloud/sharding-code-fixes 2024-09-16 11:39:58 +02:00
Diagnostics refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
DirectEditing refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Encryption chore: Fix encryption test use statement 2024-09-16 18:11:38 +02:00
Federation refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Files fix(tests): Pause trashbin for lock tests in ViewTest using rmdir and unlink 2024-09-24 10:37:38 +02:00
GlobalScale refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Group refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Hooks refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Http chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
IntegrityCheck chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
L10N fix(rtl): Make clear that the direction is based on language 2024-09-23 17:00:07 +02:00
Lock refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Lockdown fix(Storage): Document getOwner() can return false 2024-09-17 10:10:50 +02:00
Log chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Mail fix(Mailer): Fix sendmail binary fallback 2024-09-16 15:20:29 +02:00
Memcache refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Migration refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Net chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Notification fix: Adapt notifications and activity tests to new DI dependency 2024-09-17 15:28:09 +02:00
OCS refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Preview chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Remote refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Repair chore: Cleanup and prepare \OC\Repair\RepairMimeTypes tests for PHPUnit 10 2024-09-19 19:25:42 +02:00
RichObjectStrings refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Route chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Security Merge pull request #32018 from nextcloud/cleanup/event/trashbin 2024-09-24 17:15:39 +02:00
Session refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Settings refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
SetupCheck feat: Make CheckServerResponseTrait public and provide as OCP\SetupCheck\CheckServerResponseTrait 2024-09-16 14:58:21 +02:00
Share chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Share20 fix(l10n): Rephrasing some exceptions to be translated 2024-09-20 18:35:11 +02:00
Support refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
SystemTag refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TaskProcessing chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
Template refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TextProcessing refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
Traits chore: Add SPDX header 2024-05-13 17:41:36 +02:00
Updater chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
User fix: Make user removal more resilient 2024-09-26 20:48:37 +02:00
Util chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AllConfigTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
AppConfigTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
AppScriptSortTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
AppTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
AutoLoaderTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
BinaryFinderTest.php feat: make search path for BinaryFinder customizable. 2024-09-20 17:00:06 +02:00
CapabilitiesManagerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
ConfigTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
ContactsManagerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
DateTimeFormatterTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
EmojiHelperTest.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
ErrorHandlerTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
EventSourceFactoryTest.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
HelperStorageTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
HookHelper.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ImageTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
InfoXmlTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
InitialStateServiceTest.php style: update codestyle for coding-standard 1.2.3 2024-08-25 19:34:58 +02:00
InstallerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LargeFileHelperGetFileSizeTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LargeFileHelperTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LegacyHelperTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
LoggerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
MemoryInfoTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
NaturalSortTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
NavigationManagerTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
RepairTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
ServerTest.php fix(tests): Remove deprecated tests for ServerTest 2024-09-17 17:48:01 +02:00
SetupTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
SubAdminTest.php chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
TagsTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TemplateFunctionsTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TempManagerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
TestCase.php chore: Remove old travis related stuff 2024-09-19 20:16:29 +02:00
TestMoveableMountPoint.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
UpdaterTest.php chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00
UrlGeneratorTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
UtilCheckServerTest.php refactor: Add void return type to PHPUnit test methods 2024-09-15 22:32:31 +02:00
UtilTest.php chore(legacy): Introduce public version ct plass and drop version methods from OC_Util 2024-09-20 14:53:34 +02:00