Browse Source

Better handling of forbidden files in dav

tags/v10.0RC1
Robin Appelman 8 years ago
parent
commit
9b5fd515ef
No account linked to committer's email address

+ 2
- 0
apps/dav/lib/Connector/Sabre/Directory.php View File

@@ -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();
}
}


+ 2
- 0
apps/dav/lib/Connector/Sabre/ObjectTree.php View File

@@ -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…
Cancel
Save