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>
This commit is contained in:
Vincent Petry 2021-01-25 12:02:14 +01:00 committed by backportbot[bot]
parent 16509c61a0
commit ead953addd
1 changed files with 2 additions and 0 deletions

View File

@ -339,6 +339,8 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
$free $free
]; ];
return $this->quotaInfo; return $this->quotaInfo;
} catch (\OCP\Files\NotFoundException $e) {
return [0, 0];
} catch (\OCP\Files\StorageNotAvailableException $e) { } catch (\OCP\Files\StorageNotAvailableException $e) {
return [0, 0]; return [0, 0];
} }