nextcloud/apps/files_sharing/lib
Daniel Calviño Sánchez 05cbdddb0d 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:02:28 +00:00
..
Activity Update license headers for 19 2020-04-29 11:57:22 +02:00
AppInfo Update license headers for 19 2020-04-29 11:57:22 +02:00
BackgroundJob Update license headers for 19 2020-04-29 11:57:22 +02:00
Collaboration Update license headers for 19 2020-04-29 11:57:22 +02:00
Command Fix valid storages removed when cleaning remote storages 2021-03-18 08:02:28 +00:00
Controller Log exceptions when creating share 2021-03-15 15:06:34 +00:00
Exceptions Update license headers for 19 2020-04-29 11:57:22 +02:00
External Do not fail if share for mountpoint is no longer available 2020-09-08 09:14:45 +02:00
Listener Update license headers for 19 2020-04-29 11:57:22 +02:00
Middleware Update license headers for 19 2020-04-29 11:57:22 +02:00
Migration Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Notification Update license headers for 19 2020-04-29 11:57:22 +02:00
Settings Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ShareBackend Add visibility to all constants 2020-04-10 16:54:27 +02:00
Cache.php fix search in nested jails 2021-03-16 15:27:00 +01:00
Capabilities.php Update license headers 2019-12-05 15:38:45 +01:00
DeleteOrphanedSharesJob.php Update license headers for 19 2020-04-29 11:57:22 +02:00
ExpireSharesJob.php Also expire share type email 2020-10-20 11:40:40 +02:00
Helper.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Hooks.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ISharedStorage.php Update license headers for 19 2020-04-29 11:57:22 +02:00
MountProvider.php Always sort shares in a reliable way 2020-06-10 06:55:29 +00:00
Scanner.php Add method to storage backends to get directory content with metadata 2020-04-20 15:45:04 +02:00
SharedMount.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
SharedStorage.php Update the license headers for Nextcloud 19 2020-03-31 14:52:54 +02:00
Updater.php Update license headers for 19 2020-04-29 11:57:22 +02:00