nextcloud/apps/files_sharing
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
..
appinfo Adjust share_external table 2020-12-23 15:44:32 +01:00
composer Add a KnownUsers database with model 2021-03-11 08:38:55 +01:00
css Remove unused sharedfilelist 2020-10-22 15:21:33 +02:00
img Svgo optimization 2016-09-27 20:56:26 +02:00
js Add appconfig to always show the unique label of a sharee 2021-03-11 15:32:26 +01:00
l10n [tx-robot] updated from transifex 2021-03-18 02:25:13 +00:00
lib Fix valid storages removed when cleaning remote storages 2021-03-18 08:05:04 +00:00
src Add appconfig to always show the unique label of a sharee 2021-03-11 15:32:26 +01: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 08:05:04 +00:00
.l10nignore Exclude compiled assets of files_sharing for transifex 2019-03-26 11:23:31 +01:00
list.php Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01: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