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
16509c61a0
commit
ead953addd
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue