summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-11-27 17:25:56 +0100
committerGitHub <noreply@github.com>2017-11-27 17:25:56 +0100
commit5cc8ea8feb955980d83c0ac1d9aa2bbede62206e (patch)
tree661e699bbaaf6b3e9533b13c67b3a57cd7fdc3cb /apps
parentf700cd14fa4f094b7822edcf2e1a74b7f44ae32b (diff)
parent26a5fff4238b8fea6fe01dd5680a9d6e3162e6bc (diff)
downloadnextcloud-server-5cc8ea8feb955980d83c0ac1d9aa2bbede62206e.tar.gz
nextcloud-server-5cc8ea8feb955980d83c0ac1d9aa2bbede62206e.zip
Merge pull request #7307 from nextcloud/do-not-log-not-implemented-dav
Log NotImplementedException on DAV in debug level
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php4
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 5721f483832..7be08c7e806 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\Forbidden;
use Sabre\DAV\Exception\NotAuthenticated;
use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\Exception\NotImplemented;
use Sabre\DAV\Exception\PreconditionFailed;
use Sabre\DAV\Exception\ServiceUnavailable;
@@ -54,6 +55,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
// Happens when an external storage or federated share is temporarily
// not available
StorageNotAvailableException::class => true,
+ // happens if some a client uses the wrong method for a given URL
+ // the error message itself is visible on the client side anyways
+ NotImplemented::class => true,
];
/** @var string */