aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-07-14 22:53:12 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-14 22:53:12 +0200
commit059b7435abee8269fd5ac2948bb5fde138d7e24d (patch)
treea5909245860374a3e0489ae50d03b4c644c2573f
parent813b58ab947222f983fe25d56781f1f43c840538 (diff)
downloadnextcloud-server-059b7435abee8269fd5ac2948bb5fde138d7e24d.tar.gz
nextcloud-server-059b7435abee8269fd5ac2948bb5fde138d7e24d.zip
PasswordLoginForbidden is not a FATAL exception
It is just a 'Sabre\DAV\Exception\NotAuthenticated' exception with some special meaning. So just log it as DEBUG and not as FATAL.
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
index 38bddef8769..addacec9b03 100644
--- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
@@ -32,6 +32,9 @@ use Sabre\HTTP\Response;
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
protected $nonFatalExceptions = array(
'Sabre\DAV\Exception\NotAuthenticated' => true,
+ // If tokenauth can throw this exception (which is basically as
+ // NotAuthenticated. So not fatal.
+ 'OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden' => true,
// the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug
'Sabre\DAV\Exception\NotFound' => true,