Skip to content
Commit 9da4620f authored by Jonas Meurer's avatar Jonas Meurer Committed by backportbot[bot]
Browse files

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: default avatarJonas Meurer <jonas@freesources.org>
parent 834385a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment