Merge pull request #25313 from nextcloud/bugfix/noid/harden-unexist-subfolder

Catch NotFoundException when querying quota
pull/25325/head
Vincent Petry 3 years ago committed by GitHub
commit 2f074d73e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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