diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-26 22:41:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 22:41:49 +0200 |
commit | 5bfad25e833df458de81f9c2871d25b274838bc5 (patch) | |
tree | d77084311409a558a3dc4dd56987d42cf8ccc458 | |
parent | fa09e0e670ebb2eda66b45d421c912605c321727 (diff) | |
parent | e6a2c13ac1dfdb74957676542cdb705652c9cd13 (diff) | |
download | nextcloud-server-5bfad25e833df458de81f9c2871d25b274838bc5.tar.gz nextcloud-server-5bfad25e833df458de81f9c2871d25b274838bc5.zip |
Merge pull request #8968 from nextcloud/filter_method_not_allowed
MethodNotAllowed is not a Fatal error
-rw-r--r-- | apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index 26e29e20d12..1678a8831dc 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -32,6 +32,7 @@ use OCP\ILogger; use Sabre\DAV\Exception\Conflict; use Sabre\DAV\Exception\Forbidden; use Sabre\DAV\Exception\InvalidSyncToken; +use Sabre\DAV\Exception\MethodNotAllowed; use Sabre\DAV\Exception\NotAuthenticated; use Sabre\DAV\Exception\NotFound; 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 // move is done to a non-existent directory) 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 */ |