summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-04-30 13:46:50 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-06-10 11:57:00 +0000
commitc57df2777a01e7ca18aafb85ca1b36964e87b9ab (patch)
treee8f58a5fd97a1d5e12d3cebe9604d6eeb04b68c8 /apps
parent19d11117a5eb5e5c1130e8c372bc918f84222365 (diff)
downloadnextcloud-server-c57df2777a01e7ca18aafb85ca1b36964e87b9ab.tar.gz
nextcloud-server-c57df2777a01e7ca18aafb85ca1b36964e87b9ab.zip
fix(dav): Don't log access control as error
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
index a195b5722f5..d9b845d7acb 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,