aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-12 14:13:03 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-14 20:35:33 +0200
commitb4241514597585b69816d02d46ece6fda6cf7012 (patch)
tree087cf11598fc8d91ec037bf04ba83614ad042101 /lib
parent17b671ee253bd232c18f9e27e4ee75b25f791296 (diff)
downloadnextcloud-server-b4241514597585b69816d02d46ece6fda6cf7012.tar.gz
nextcloud-server-b4241514597585b69816d02d46ece6fda6cf7012.zip
handle notfound exceptions in lock plugin
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/lockplugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/lockplugin.php b/lib/private/connector/sabre/lockplugin.php
index d3e4e9e4d10..a3a7bb84e39 100644
--- a/lib/private/connector/sabre/lockplugin.php
+++ b/lib/private/connector/sabre/lockplugin.php
@@ -85,7 +85,11 @@ class LockPlugin extends ServerPlugin {
if ($request->getMethod() !== 'PUT') {
return;
}
- $node = $this->tree->getNodeForPath($request->getPath());
+ try {
+ $node = $this->tree->getNodeForPath($request->getPath());
+ } catch (NotFound $e) {
+ return;
+ }
if ($node instanceof Node) {
$node->releaseLock(ILockingProvider::LOCK_SHARED);
}