diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-14 20:46:33 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-07-14 19:47:14 +0000 |
commit | a3238c379084df79bf072c1bde8a20967add4389 (patch) | |
tree | 34936a3e4f4f1e76cf3936e32f42dabc0263bc6a /apps/dav/lib | |
parent | 46b24693294da844df2b6748889ef2970d78a98d (diff) | |
download | nextcloud-server-a3238c379084df79bf072c1bde8a20967add4389.tar.gz nextcloud-server-a3238c379084df79bf072c1bde8a20967add4389.zip |
Do not log RequestedRangeNotSatisfiable exceptions in DAV
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 3 |
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 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 */ |