Better handling of forbidden files in dav
This commit is contained in:
parent
ea6921da3b
commit
9b5fd515ef
|
@ -196,6 +196,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node
|
|||
throw new \Sabre\DAV\Exception\ServiceUnavailable($e->getMessage());
|
||||
} catch (\OCP\Files\InvalidPathException $ex) {
|
||||
throw new InvalidPath($ex->getMessage());
|
||||
} catch (ForbiddenException $e) {
|
||||
throw new \Sabre\DAV\Exception\Forbidden();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -161,6 +161,8 @@ class ObjectTree extends \Sabre\DAV\Tree {
|
|||
throw new \Sabre\DAV\Exception\NotFound('Storage ' . $path . ' is invalid');
|
||||
} catch (LockedException $e) {
|
||||
throw new \Sabre\DAV\Exception\Locked();
|
||||
} catch (ForbiddenException $e) {
|
||||
throw new \Sabre\DAV\Exception\Forbidden();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue