Merge pull request #8968 from nextcloud/filter_method_not_allowed

MethodNotAllowed is not a Fatal error
This commit is contained in:
Roeland Jago Douma 2018-03-26 22:41:49 +02:00 committed by GitHub
commit 5bfad25e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,7 @@ use OCP\ILogger;
use Sabre\DAV\Exception\Conflict; use Sabre\DAV\Exception\Conflict;
use Sabre\DAV\Exception\Forbidden; use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\InvalidSyncToken; use Sabre\DAV\Exception\InvalidSyncToken;
use Sabre\DAV\Exception\MethodNotAllowed;
use Sabre\DAV\Exception\NotAuthenticated; use Sabre\DAV\Exception\NotAuthenticated;
use Sabre\DAV\Exception\NotFound; use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\Exception\NotImplemented; use Sabre\DAV\Exception\NotImplemented;
@ -65,6 +66,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
// happens when the parent directory is not present (for example when a // happens when the parent directory is not present (for example when a
// move is done to a non-existent directory) // move is done to a non-existent directory)
Conflict::class => true, Conflict::class => true,
// happens when a certain method is not allowed to be called
// for example creating a folder that already exists
MethodNotAllowed::class => true,
]; ];
/** @var string */ /** @var string */