Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not log RequestedRangeNotSatisfiable exceptions in DAV
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Jul 14, 2020
commit 68f1283691e759d417cf54b7517dd6efbc7463bc
3 changes: 3 additions & 0 deletions apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
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 {
Expand Down Expand Up @@ -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 */
Expand Down