From: Roeland Jago Douma Date: Tue, 14 Jul 2020 18:46:33 +0000 (+0200) Subject: Do not log RequestedRangeNotSatisfiable exceptions in DAV X-Git-Tag: v20.0.0beta1~245^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=68f1283691e759d417cf54b7517dd6efbc7463bc;p=nextcloud-server.git Do not log RequestedRangeNotSatisfiable exceptions in DAV Signed-off-by: Roeland Jago Douma --- diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index 2f703d1e5f3..0bd0a54d667 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -40,6 +40,7 @@ use Sabre\DAV\Exception\NotAuthenticated; use Sabre\DAV\Exception\NotFound; use Sabre\DAV\Exception\NotImplemented; use Sabre\DAV\Exception\PreconditionFailed; +use Sabre\DAV\Exception\RequestedRangeNotSatisfiable; use Sabre\DAV\Exception\ServiceUnavailable; class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { @@ -74,6 +75,8 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { MethodNotAllowed::class => true, // A locked file is perfectly valid and can happen in various cases FileLocked::class => true, + // An invalid range is requested + RequestedRangeNotSatisfiable::class => true, ]; /** @var string */