nextcloud/lib/private/Files
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
..
AppData Use storage filter when fetching previews to cleanup 2021-08-26 22:03:05 +02:00
Cache Switch logical operators 2021-12-03 16:05:19 +01:00
Config Merge pull request #26494 from rigrig/fix-php8-deprecations 2021-06-07 23:30:59 +02:00
Mount Implement multibucket shift for ObjectStore 2021-11-11 15:09:28 +01:00
Node fix Folder->getById() when a single storage is mounted multiple times 2021-07-28 17:21:04 +02:00
Notify Update php licenses 2021-06-04 22:02:41 +02:00
ObjectStore Make max size for single put uploads configurable 2021-12-29 13:30:22 +01:00
Search generate a better optimized query for path prefix search filters 2021-08-26 19:07:52 +02:00
SimpleFS Update php licenses 2021-06-04 22:02:41 +02:00
Storage updateEncryptedVersion: cleanup on target if cache already got renamed 2022-01-12 15:47:08 +01:00
Stream Support seeking also from the end of file on S3 storage 2021-09-11 17:43:50 +03:00
Template Update php licenses 2021-06-04 22:02:41 +02:00
Type Update php licenses 2021-06-04 22:02:41 +02:00
Utils background scan the source storage when a background scan on a storage jail is triggered 2021-12-02 17:34:58 +01:00
FileInfo.php Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
Filesystem.php Merge pull request #26347 from J0WI/clean-path-regex 2021-10-22 11:42:30 +02:00
View.php Fix psalm 2021-11-04 10:24:13 +01:00