mirror of
https://github.com/nextcloud/server.git
synced 2026-02-23 01:40:59 -05:00
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:
parent
b98860eeb3
commit
65da8bd76e
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue