Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #30631

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>
@mejo- mejo- force-pushed the backport/30631/stable22 branch from 0447dc6 to 5d1157c Compare January 15, 2022 12:40
@mejo- mejo- merged commit 293e555 into stable22 Jan 16, 2022
@mejo- mejo- deleted the backport/30631/stable22 branch January 16, 2022 09:20
@blizzz blizzz mentioned this pull request Jan 17, 2022
This was referenced Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants