summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-14 21:44:49 +0200
committerGitHub <noreply@github.com>2020-07-14 21:44:49 +0200
commit3e8087bff1584e33f328486c36fd2a8255286bad (patch)
tree02b9eaf1da7e463717f22c6bf3299951c55c9403 /apps
parent2ad95feab6dd525cdda5aa61c22119c98d21ca97 (diff)
parent68f1283691e759d417cf54b7517dd6efbc7463bc (diff)
downloadnextcloud-server-3e8087bff1584e33f328486c36fd2a8255286bad.tar.gz
nextcloud-server-3e8087bff1584e33f328486c36fd2a8255286bad.zip
Merge pull request #21838 from nextcloud/enh/dav/do_not_log_invalid_range
Do not log RequestedRangeNotSatisfiable exceptions in DAV
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php3
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 */