diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-08-12 14:13:03 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-14 20:35:33 +0200 |
commit | b4241514597585b69816d02d46ece6fda6cf7012 (patch) | |
tree | 087cf11598fc8d91ec037bf04ba83614ad042101 /lib | |
parent | 17b671ee253bd232c18f9e27e4ee75b25f791296 (diff) | |
download | nextcloud-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.php | 6 |
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); } |