Skip to content
Commit 9ccabff6 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

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: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 3aba5b27
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment