Merge pull request #39454 from nextcloud/backport/39447/stable27

[stable27] Fix sharing of encrypted files
This commit is contained in:
Andy Scherzinger 2023-07-18 13:59:48 +02:00 committed by GitHub
commit 281117a2fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -441,7 +441,7 @@ class Encryption implements IEncryptionModule {
$this->keyManager->deleteAllFileKeys($path);
foreach ($shareKeys as $uid => $keyFile) {
$this->keyManager->setShareKey($this->path, $uid, $keyFile);
$this->keyManager->setShareKey($path, $uid, $keyFile);
}
} else {
$this->logger->debug('no file key found, we assume that the file "{file}" is not encrypted',