Skip to content

Commit

Permalink
Merge pull request #6706 from nextcloud/backport/6699/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: catch all errors when getting rich workspace file
  • Loading branch information
mejo- authored Nov 27, 2024
2 parents dbebbbd + a6dd69c commit 66dd6f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
use OCP\Files\GenericFileException;
use OCP\Files\IRootFolder;
use OCP\Files\NotPermittedException;
use OCP\Files\StorageNotAvailableException;
use OCP\IConfig;
use OCP\Lock\LockedException;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -117,7 +116,7 @@ public function propFind(PropFind $propFind, INode $node) {
/** @var File $file */
try {
$file = $this->workspaceService->getFile($nodes[0]);
} catch (StorageNotAvailableException $e) {
} catch (\Exception $e) {
// If a storage is not available we can for the propfind response assume that there is no rich workspace present
}
}
Expand Down

0 comments on commit 66dd6f5

Please sign in to comment.