diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-07-16 21:48:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 21:48:43 +0300 |
commit | 6ad5455a91041723c4caa409bc3ef9e3a6593102 (patch) | |
tree | ca746076dcb5bc6484e9bc46cdddf3180444ffbf /apps | |
parent | 2e09c6f922bdb129c8ab35649a4352d8108caee7 (diff) | |
parent | 49fc06790d587ce6c6f413dbebebdec19f901d54 (diff) |
Merge pull request #21842 from nextcloud/backport/21838/stable17
[stable17] Do not log RequestedRangeNotSatisfiable exceptions in DAV
Diffstat (limited to 'apps')
-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 d134a0efaff..7d18eba98b2 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -38,6 +38,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 { @@ -72,6 +73,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 */ |