aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-10 16:31:32 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-10 16:31:32 +0100
commitbef70e9448931cf8229f26f2aed0579340089e9d (patch)
tree57156f26b53d88b4b88cbae565c4d4ce0e201d71 /apps/dav/lib/connector
parent65554ec33339ce5b0938c5fa94a76c9e1f0affce (diff)
downloadnextcloud-server-bef70e9448931cf8229f26f2aed0579340089e9d.tar.gz
nextcloud-server-bef70e9448931cf8229f26f2aed0579340089e9d.zip
also fix lock order for chunked dav uploads
Diffstat (limited to 'apps/dav/lib/connector')
-rw-r--r--apps/dav/lib/connector/sabre/file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/connector/sabre/file.php b/apps/dav/lib/connector/sabre/file.php
index 9b753c01f60..38a1ee5f4e2 100644
--- a/apps/dav/lib/connector/sabre/file.php
+++ b/apps/dav/lib/connector/sabre/file.php
@@ -450,11 +450,11 @@ class File extends Node implements IFile {
}
}
- $this->fileView->changeLock($targetPath, ILockingProvider::LOCK_SHARED);
-
// since we skipped the view we need to scan and emit the hooks ourselves
$targetStorage->getUpdater()->update($targetInternalPath);
+ $this->fileView->changeLock($targetPath, ILockingProvider::LOCK_SHARED);
+
$this->emitPostHooks($exists, $targetPath);
$info = $this->fileView->getFileInfo($targetPath);