handle notfound exceptions in lock plugin
This commit is contained in:
parent
17b671ee25
commit
b424151459
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,11 @@ class LockPlugin extends ServerPlugin {
|
||||||
if ($request->getMethod() !== 'PUT') {
|
if ($request->getMethod() !== 'PUT') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$node = $this->tree->getNodeForPath($request->getPath());
|
try {
|
||||||
|
$node = $this->tree->getNodeForPath($request->getPath());
|
||||||
|
} catch (NotFound $e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ($node instanceof Node) {
|
if ($node instanceof Node) {
|
||||||
$node->releaseLock(ILockingProvider::LOCK_SHARED);
|
$node->releaseLock(ILockingProvider::LOCK_SHARED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue