summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-25 10:19:14 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-31 12:24:38 +0200
commita9e22c5f1ccdc148d8ea8a1e2f5e8baac6f19e90 (patch)
treec4e7d88363686a63b12c1141243e73774b1c34be /apps/encryption/lib
parentc39bc1638b812ef9660cfdb0ab6ca58d70ad68d8 (diff)
downloadnextcloud-server-a9e22c5f1ccdc148d8ea8a1e2f5e8baac6f19e90.tar.gz
nextcloud-server-a9e22c5f1ccdc148d8ea8a1e2f5e8baac6f19e90.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/lib')
-rw-r--r--apps/encryption/lib/Crypto/Encryption.php1
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