nextcloud/apps/files_sharing
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
..
appinfo Adjust share_external table 2021-01-07 09:38:59 +01:00
composer Adjust share_external table 2021-01-07 09:38:59 +01:00
css Fix public layout header title & description 2020-04-30 13:32:28 +02:00
img Svgo optimization 2016-09-27 20:56:26 +02:00
js Only clear share password model when actually saved 2021-03-11 10:20:59 +00:00
l10n [tx-robot] updated from transifex 2021-03-18 02:25:22 +00:00
lib Fix valid storages removed when cleaning remote storages 2021-03-18 07:59:45 +00:00
src Only clear share password model when actually saved 2021-03-11 10:20:59 +00:00
templates Don't use deprecated getIniWrapper() anymore 2020-08-20 16:35:38 +02:00
tests Fix valid storages removed when cleaning remote storages 2021-03-18 07:59:45 +00:00
.l10nignore Exclude compiled assets of files_sharing for transifex 2019-03-26 11:23:31 +01:00
list.php Update the license headers for Nextcloud 20 2020-08-24 14:54:25 +02:00
public.php Update the license headers for Nextcloud 19 2020-03-31 14:52:54 +02:00
webpack.js Allow users to specify to accept (internal) shares by default 2019-12-17 10:49:29 +01:00