From 68f1283691e759d417cf54b7517dd6efbc7463bc Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Tue, 14 Jul 2020 20:46:33 +0200
Subject: Do not log RequestedRangeNotSatisfiable exceptions in DAV

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'apps/dav')

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 */
-- 
cgit v1.2.3