nextcloud/lib/private/Files/Storage/Wrapper
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
..
Availability.php Update lib/private/Files/Storage/Wrapper/Availability.php add void 2021-11-05 10:28:41 +01:00
Encoding.php Normalize directory entries in Encoding wrapper 2021-11-17 09:43:25 +01:00
EncodingDirectoryWrapper.php Normalize directory entries in Encoding wrapper 2021-11-17 09:43:25 +01:00
Encryption.php updateEncryptedVersion: cleanup on target if cache already got renamed 2022-01-12 15:47:08 +01:00
Jail.php Merge branch 'master' into imountpoint-ocp-storage 2021-10-22 11:47:37 +02:00
PermissionsMask.php Update php licenses 2021-06-04 22:02:41 +02:00
Quota.php Update php licenses 2021-06-04 22:02:41 +02:00
Wrapper.php Merge branch 'master' into imountpoint-ocp-storage 2021-10-22 11:47:37 +02:00