[Pkg-owncloud-commits] [owncloud] 172/273: Catch StorageInvalidException in webdav
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 816110442032e34b025f7386e4d680140919a834
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Jul 1 15:03:29 2014 +0200
Catch StorageInvalidException in webdav
---
lib/private/connector/sabre/objecttree.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index f283fcf..d7a96cf 100644
--- a/lib/private/connector/sabre/objecttree.php
+++ b/lib/private/connector/sabre/objecttree.php
@@ -11,6 +11,7 @@ namespace OC\Connector\Sabre;
use OC\Files\FileInfo;
use OC\Files\Filesystem;
use OC\Files\Mount\MoveableMount;
+use OCP\Files\StorageInvalidException;
use OCP\Files\StorageNotAvailableException;
class ObjectTree extends \Sabre\DAV\ObjectTree {
@@ -88,6 +89,8 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
$info = $this->fileView->getFileInfo($path);
} catch (StorageNotAvailableException $e) {
throw new \Sabre\DAV\Exception\ServiceUnavailable('Storage not available');
+ } catch (StorageInvalidException $e){
+ throw new \Sabre\DAV\Exception\NotFound('Storage ' . $path . ' is invalid');
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list