From 89bce5c76ef70ceae7c03b0b4955028c49d733df Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 30 Apr 2024 13:46:50 +0200 Subject: [PATCH] fix(dav): Don't log access control as error Signed-off-by: Joas Schilling --- apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index a195b5722f58b..d9b845d7acb3f 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -65,6 +65,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { // forbidden can be expected when trying to upload to // read-only folders for example Forbidden::class => true, + // our forbidden is expected when access control is blocking + // an item in a folder + \OCA\DAV\Connector\Sabre\Exception\Forbidden::class => true, // Happens when an external storage or federated share is temporarily // not available StorageNotAvailableException::class => true,