summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-10 16:21:13 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-10 16:21:13 +0100
commit65554ec33339ce5b0938c5fa94a76c9e1f0affce (patch)
treeef9dcb3de26f56ba3e386d16a3da68c733ccd0c3 /apps/dav
parent9a2c517ca8eaf25bf142696e1479355112b1f108 (diff)
downloadnextcloud-server-65554ec33339ce5b0938c5fa94a76c9e1f0affce.tar.gz
nextcloud-server-65554ec33339ce5b0938c5fa94a76c9e1f0affce.zip
scan the file in the write lock when uploading over dav
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/connector/sabre/file.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/connector/sabre/file.php b/apps/dav/lib/connector/sabre/file.php
index be313a91e8c..9b753c01f60 100644
--- a/apps/dav/lib/connector/sabre/file.php
+++ b/apps/dav/lib/connector/sabre/file.php
@@ -194,15 +194,15 @@ class File extends Node implements IFile {
}
}
+ // since we skipped the view we need to scan and emit the hooks ourselves
+ $storage->getUpdater()->update($internalPath);
+
try {
$this->changeLock(ILockingProvider::LOCK_SHARED);
} catch (LockedException $e) {
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
}
- // since we skipped the view we need to scan and emit the hooks ourselves
- $storage->getUpdater()->update($internalPath);
-
if ($view) {
$this->emitPostHooks($exists);
}