Skip to content
Snippets Groups Projects
Unverified Commit 059b7435 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

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.
parent 813b58ab
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,9 @@ use Sabre\HTTP\Response; ...@@ -32,6 +32,9 @@ use Sabre\HTTP\Response;
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
protected $nonFatalExceptions = array( protected $nonFatalExceptions = array(
'Sabre\DAV\Exception\NotAuthenticated' => true, '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, // the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug // so it is not always an error, log it as debug
'Sabre\DAV\Exception\NotFound' => true, 'Sabre\DAV\Exception\NotFound' => true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment