summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-23 17:41:32 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-23 17:41:32 +0100
commiteb894e662523709b2b3915b14354aa6adab03c86 (patch)
tree054bfcf8118e77a905bad710eab9337f2ba45d3b /lib
parenta9b4f0d8429dbeb612e80b168b6146890bb7843e (diff)
downloadnextcloud-server-eb894e662523709b2b3915b14354aa6adab03c86.tar.gz
nextcloud-server-eb894e662523709b2b3915b14354aa6adab03c86.zip
Soft fail in CustomPropertiesBackend whenever storage not available
When a storage is not available, it will not fail the whole call any more but still return a usable file list.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/custompropertiesbackend.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/custompropertiesbackend.php b/lib/private/connector/sabre/custompropertiesbackend.php
index 6827cb9ae0d..9bd6452674b 100644
--- a/lib/private/connector/sabre/custompropertiesbackend.php
+++ b/lib/private/connector/sabre/custompropertiesbackend.php
@@ -30,6 +30,7 @@ use Sabre\DAV\PropFind;
use Sabre\DAV\PropPatch;
use Sabre\DAV\Tree;
use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\Exception\ServiceUnavailable;
class CustomPropertiesBackend implements BackendInterface {
@@ -100,6 +101,9 @@ class CustomPropertiesBackend implements BackendInterface {
if (!($node instanceof Node)) {
return;
}
+ } catch (ServiceUnavailable $e) {
+ // might happen for unavailable mount points, skip
+ return;
} catch (NotFound $e) {
// in some rare (buggy) cases the node might not be found,
// we catch the exception to prevent breaking the whole list with a 404