diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-25 10:19:14 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-08-08 10:46:14 +0200 |
commit | be172cc6f25ad7d1da383da06f90b834b62c0855 (patch) | |
tree | 72b8bc4b4f2da2c1fd470f31eb3f04c4bb605179 /apps/encryption | |
parent | a5985ad0f4697249f42c95cc5241a69df7acef09 (diff) | |
download | nextcloud-server-be172cc6f25ad7d1da383da06f90b834b62c0855.tar.gz nextcloud-server-be172cc6f25ad7d1da383da06f90b834b62c0855.zip |
make file cache updates more robust
only update the encrypted version after the write operation is finished and the stream is closed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/Crypto/Encryption.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php index bd75e4ae10c..3f6001cab74 100644 --- a/apps/encryption/lib/Crypto/Encryption.php +++ b/apps/encryption/lib/Crypto/Encryption.php @@ -254,7 +254,6 @@ class Encryption implements IEncryptionModule { public function end($path, $position = 0) { $result = ''; if ($this->isWriteOperation) { - $this->keyManager->setVersion($path, $this->version + 1, new View()); // in case of a part file we remember the new signature versions // the version will be set later on update. // This way we make sure that other apps listening to the pre-hooks |