Skip to content

Commit

Permalink
Merge pull request #25313 from nextcloud/bugfix/noid/harden-unexist-s…
Browse files Browse the repository at this point in the history
…ubfolder

Catch NotFoundException when querying quota
  • Loading branch information
PVince81 committed Jan 25, 2021
2 parents b98860e + 65da8bd commit 2f074d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/dav/lib/Connector/Sabre/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ public function getQuotaInfo() {
$free
];
return $this->quotaInfo;
} catch (\OCP\Files\NotFoundException $e) {
return [0, 0];
} catch (\OCP\Files\StorageNotAvailableException $e) {
return [0, 0];
}
Expand Down

0 comments on commit 2f074d7

Please sign in to comment.