Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-01 17:03:29 +0400
committerRobin Appelman <icewind@owncloud.com>2014-07-01 17:03:29 +0400
commit816110442032e34b025f7386e4d680140919a834 (patch)
tree84e8b103608a45779faee1fe67f5e04dc55063c6 /lib/private/connector
parent8339618ead32bf21e76d65d0e0015cf0cd8adc1f (diff)
Catch StorageInvalidException in webdav
Diffstat (limited to 'lib/private/connector')
-rw-r--r--lib/private/connector/sabre/objecttree.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index f283fcf47f7..d7a96cfc88e 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');
}
}