aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-27 16:17:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-27 16:17:01 +0100
commit26a5fff4238b8fea6fe01dd5680a9d6e3162e6bc (patch)
treeb0de98e26cc2608534ac1556284ee93d98c6692e
parentcfae590ac93f8b5c9c633aafbf205f54a7400201 (diff)
downloadnextcloud-server-26a5fff4238b8fea6fe01dd5680a9d6e3162e6bc.tar.gz
nextcloud-server-26a5fff4238b8fea6fe01dd5680a9d6e3162e6bc.zip
Log NotImplementedException on DAV in debug level
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-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 */