aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-31 23:13:52 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-31 23:13:52 +0200
commit2714dfce21fa517e3056865d4f2a7d5c24276a43 (patch)
tree53c25d04e66d009ec250c2c6fe711bd79b3a4f08 /lib
parent1fac22c2c8abc4a31ca7a3dbb015fc29f0b5fae1 (diff)
parente4b451491b11682b7f58df4c709b69bfbac76c9c (diff)
downloadnextcloud-server-2714dfce21fa517e3056865d4f2a7d5c24276a43.tar.gz
nextcloud-server-2714dfce21fa517e3056865d4f2a7d5c24276a43.zip
Merge pull request #23713 from owncloud/small_encryption_fix
make sure that we always remove the file again from the cache after t…
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/wrapper/encryption.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index a0253722c5b..1add4d7fd0a 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -699,6 +699,7 @@ class Encryption extends Wrapper {
// create a 1:1 copy of the file
$this->arrayCache->set('encryption_copy_version_' . $sourceInternalPath, true);
$result = $this->storage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+ $this->arrayCache->remove('encryption_copy_version_' . $sourceInternalPath);
if ($result) {
$info = $this->getCache('', $sourceStorage)->get($sourceInternalPath);
// make sure that we update the unencrypted size for the version