From a6dd69c9be9d849f704f88b767e2b9bbda240637 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 27 Nov 2024 12:23:24 +0100 Subject: [PATCH] fix: catch all errors when getting rich workspace file Signed-off-by: Jonas --- lib/DAV/WorkspacePlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 100cfef02b8..4e2cbd7055e 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -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; @@ -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 } }