Catch NotFoundException when querying quota

Fixes parent folder that becomes inaccessible when it contains a
non-existing / broken entry because the quota check made the PROPFIND
on parent fail altogether.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
pull/25313/head
Vincent Petry 6 years ago
parent b98860eeb3
commit 65da8bd76e
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
  1. 2
      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];
}

Loading…
Cancel
Save