From d79476cf3c88c4c834a129205963f0c19161d7e0 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 14 Jul 2020 20:46:33 +0200 Subject: [PATCH] Do not log RequestedRangeNotSatisfiable exceptions in DAV Signed-off-by: Roeland Jago Douma --- 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 dc595197965..ddf6ba601bd 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -39,6 +39,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 { @@ -73,6 +74,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 */ -- 2.39.5