nextcloud/apps/files_sharing/lib
Daniel Calviño Sánchez ec454e7c2b 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 07:59:45 +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-14 11:10:59 +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 07:59:45 +00:00
Controller Log exceptions when creating share 2021-03-15 15:06:43 +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:54:09 +00:00
Listener Expose CLOUD federation for local users as well 2020-10-12 18:51:53 +00:00
Middleware Update license headers for 19 2020-04-29 11:57:22 +02:00
Migration Also add missing oc_share_external.share_type column 2021-01-07 09:39:10 +01: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 Use matching parameter names form interfaces and implementations 2020-08-19 18:16:35 +02:00
Cache.php fix search in nested jails 2021-03-16 15:22:22 +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 09:35:45 +00:00
Helper.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02: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 the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
Scanner.php catch notfound and forbidden exception in smb::getmetadata 2021-03-05 07:54:09 +00:00
SharedMount.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
SharedStorage.php Merge pull request #22898 from nextcloud/fix/16696/add-spaces-and-fix-variable-name 2020-09-17 11:55:07 +02:00
Updater.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00