summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-01-25 13:29:26 +0100
committerGitHub <noreply@github.com>2021-01-25 13:29:26 +0100
commit2f074d73e371ea6511b9d133dd3c21c87630039c (patch)
tree051e8fee17836242d67b80053021133c27941e3f
parentb98860eeb3e9f1abfcca1e5ea335159193a47e80 (diff)
parent65da8bd76e72dd94b882fa23e997617896f5eef2 (diff)
downloadnextcloud-server-2f074d73e371ea6511b9d133dd3c21c87630039c.tar.gz
nextcloud-server-2f074d73e371ea6511b9d133dd3c21c87630039c.zip
Merge pull request #25313 from nextcloud/bugfix/noid/harden-unexist-subfolder
Catch NotFoundException when querying quota
-rw-r--r--apps/dav/lib/Connector/Sabre/Directory.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Directory.php b/apps/dav/lib/Connector/Sabre/Directory.php
index f2227f70151..990e57eea58 100644
--- a/apps/dav/lib/Connector/Sabre/Directory.php
+++ b/apps/dav/lib/Connector/Sabre/Directory.php
@@ -339,6 +339,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
$free
];
return $this->quotaInfo;
+ } catch (\OCP\Files\NotFoundException $e) {
+ return [0, 0];
} catch (\OCP\Files\StorageNotAvailableException $e) {
return [0, 0];
}