From 65554ec33339ce5b0938c5fa94a76c9e1f0affce Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 10 Feb 2016 16:21:13 +0100 Subject: scan the file in the write lock when uploading over dav --- apps/dav/lib/connector/sabre/file.php | 6 +++--- 1 file 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); } -- cgit v1.2.3