nextcloud/apps/files_sharing/tests
Daniel Calviño Sánchez 7e87b12271 Fix valid storages removed when cleaning remote storages
The remote URL of a share is always stored in the database with a
trailing slash. However, when a cloud ID is generated trailing slashes
are removed.

The ID of a remote storage is generated from the cloud ID, but the
"cleanup-remote-storage" command directly used the remote URL stored in
the database. Due to this, even if the remote storage was valid, its ID
did not match the ID of the remote share generated by the command and
ended being removed.

Now the command generates the ID of remote shares using the cloud ID
instead, just like done by the remote storage, so there is no longer a
mismatch.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-03-18 08:05:04 +00:00
..
Collaboration Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Command Fix valid storages removed when cleaning remote storages 2021-03-18 08:05:04 +00:00
Controller Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
External Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Middleware Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
Migration Don't leave cursors open when tests fail 2020-11-09 12:28:17 +01:00
js Fix sharing breadcrumbs 2019-11-06 00:53:59 +01:00
ApiTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
CacheTest.php fix search in nested jails 2021-03-15 17:51:33 +00:00
CapabilitiesTest.php Harde CapabiltiesTest 2020-12-07 15:44:04 +01:00
DeleteOrphanedSharesJobTest.php Re-use fetched dependencies in lib/base.php 2021-01-20 21:55:16 +01:00
EncryptedSizePropagationTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
EtagPropagationTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
ExpireSharesJobTest.php Re-use fetched dependencies in lib/base.php 2021-01-20 21:55:16 +01:00
ExternalStorageTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
GroupEtagPropagationTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
HelperTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
LockingTest.php Update share type constant usage 2020-06-24 16:49:16 +02:00
MountProviderTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
PermissionsTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
PropagationTestCase.php Update license headers 2019-12-05 15:38:45 +01:00
ShareTest.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
SharedMountTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
SharedStorageTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
SizePropagationTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
TestCase.php Re-use fetched dependencies in lib/base.php 2021-01-20 21:55:16 +01:00
UnshareChildrenTest.php Update share type constant usage 2020-06-24 16:49:16 +02:00
UpdaterTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
WatcherTest.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00