Skip to content

Commit 9d0200c

Browse files
authored
Merge pull request #45120 from nextcloud/bugfix/noid/sensitive-dav-forbidden-logging
fix(dav): Don't log access control as error
2 parents 7451105 + 89bce5c commit 9d0200c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
4545
// forbidden can be expected when trying to upload to
4646
// read-only folders for example
4747
Forbidden::class => true,
48+
// our forbidden is expected when access control is blocking
49+
// an item in a folder
50+
\OCA\DAV\Connector\Sabre\Exception\Forbidden::class => true,
4851
// Happens when an external storage or federated share is temporarily
4952
// not available
5053
StorageNotAvailableException::class => true,

0 commit comments

Comments
 (0)