Skip to content

Commit

Permalink
Merge pull request #45120 from nextcloud/bugfix/noid/sensitive-dav-fo…
Browse files Browse the repository at this point in the history
…rbidden-logging

fix(dav): Don't log access control as error
  • Loading branch information
susnux authored Jun 10, 2024
2 parents 7451105 + 89bce5c commit 9d0200c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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,
Expand Down

0 comments on commit 9d0200c

Please sign in to comment.