nextcloud/apps/files_sharing/lib
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
..
Activity Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
AppInfo Do not register share menu in cases where the files app has not been registered yet 2020-12-08 16:05:53 +01: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:05:04 +00:00
Controller Log exceptions when creating share 2021-03-15 15:06:16 +00:00
Event Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Exceptions Update license headers for 19 2020-04-29 11:57:22 +02:00
External catch notfound and forbidden exception in smb::getmetadata 2021-03-05 07:51:47 +00:00
Listener Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Middleware Update license headers for 19 2020-04-29 11:57:22 +02:00
Migration Migrate internal classes to the OCP db col types 2021-01-12 14:09:13 +01:00
Notification Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
Settings Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
ShareBackend Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Cache.php fix search in nested jails 2021-03-15 17:51:33 +00:00
Capabilities.php Add appconfig to always show the unique label of a sharee 2021-03-11 15:32:26 +01:00
DeleteOrphanedSharesJob.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
ExpireSharesJob.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Helper.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Hooks.php Move federated_share_added into a typed event 2020-07-23 08:33:17 +02:00
ISharedStorage.php Update license headers for 19 2020-04-29 11:57:22 +02:00
MountProvider.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
Scanner.php catch notfound and forbidden exception in smb::getmetadata 2021-03-05 07:51:47 +00:00
SharedMount.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
SharedStorage.php Update license headers 2020-12-30 14:07:05 +01:00
Updater.php Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00