nextcloud/lib/private/Files/Storage
Jonas Meurer 5d1157c37c
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-15 13:40:01 +01:00
..
PolyFill Update php licenses 2021-06-04 22:02:41 +02:00
Wrapper updateEncryptedVersion: cleanup on target if cache already got renamed 2022-01-15 13:40:01 +01:00
Common.php Check for invalid characters before trimming 2021-11-25 15:39:19 +01:00
CommonTest.php Update php licenses 2021-06-04 22:02:41 +02:00
DAV.php Update php licenses 2021-06-04 22:02:41 +02:00
FailedStorage.php Update php licenses 2021-06-04 22:02:41 +02:00
Flysystem.php Update php licenses 2021-06-04 22:02:41 +02:00
Home.php Update php licenses 2021-06-04 22:02:41 +02:00
Local.php Fix security issues when copying groupfolder with advanced ACL 2021-10-21 16:34:20 +00:00
LocalRootStorage.php Update php licenses 2021-06-04 22:02:41 +02:00
LocalTempFileTrait.php Update php licenses 2021-06-04 22:02:41 +02:00
Storage.php Update php licenses 2021-06-04 22:02:41 +02:00
StorageFactory.php Update php licenses 2021-06-04 22:02:41 +02:00
Temporary.php Update php licenses 2021-06-04 22:02:41 +02:00