nextcloud/lib
Jonas Meurer a2f4c62c19
updateEncryptedVersion: cleanup on target if cache already got renamed
When moving a file to trash with encryption enabled, the cache gets
moved before the actual file. According to @icewind1991 this is in order
to not break object storage.

When moving a file from an unencrypted storage (e.g. a collectives
storage) to the encrypted trashbin storage, this causes errors, see

This commit fixes it by doing `updateEncryptedVersion()` on the target
cache entry *if* the source cache entry doesn't exist anymore, but the
corresponding target cache entry does exist already.

Fixes: #26544

Signed-off-by: Jonas Meurer <jonas@freesources.org>
2022-01-12 15:47:08 +01:00
..
composer Sort app scripts topologically by its dependencies 2021-12-29 16:40:05 +01:00
l10n [tx-robot] updated from transifex 2022-01-12 02:26:58 +00:00
private updateEncryptedVersion: cleanup on target if cache already got renamed 2022-01-12 15:47:08 +01:00
public Streamline reseting of private static properties 2022-01-11 10:29:25 +01:00
autoloader.php Update php licenses 2021-06-04 22:02:41 +02:00
base.php Move bundles to /dist 2022-01-08 10:11:58 +01:00
versioncheck.php Allow minor release of PHP 8.1 to be used as well 2021-12-16 09:43:31 +01:00