Merge pull request #23713 from owncloud/small_encryption_fix

make sure that we always remove the file again from the cache after t…
This commit is contained in:
Thomas Müller 2016-03-31 23:13:52 +02:00
commit 2714dfce21
1 changed files with 1 additions and 0 deletions

View File

@ -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