From 593c3d6d99a43c9dcc72c9dd6ac8ca11bd6a1e2e Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 18 Sep 2024 16:37:55 +0200 Subject: [PATCH] fix: Remove unnecessary exception formatting code in DAV Signed-off-by: Louis Chemineau --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index 60da92e3bdf2b..eb4e1d5068893 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -279,6 +279,8 @@ public function httpGet(RequestInterface $request, ResponseInterface $response) public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node) { $httpRequest = $this->server->httpRequest; + throw new NotFound(' does not exist'); + if ($node instanceof \OCA\DAV\Connector\Sabre\Node) { /** * This was disabled, because it made dir listing throw an exception,