From 2340660a5b93402946a36645ca05836c06f5f816 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 17 Jun 2016 15:50:24 +0200 Subject: [PATCH] PasswordLoginForbidden must extend NotAuthenticated The auth code from Sabre will forward NotAuthenticated exceptions but in the case of a generic exception, it is packaged as "service not available". --- .../lib/Connector/Sabre/Exception/PasswordLoginForbidden.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php index 78b27d0544c..6537da3d56d 100644 --- a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php +++ b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php @@ -23,10 +23,10 @@ namespace OCA\DAV\Connector\Sabre\Exception; use DOMElement; -use Sabre\DAV\Exception; use Sabre\DAV\Server; +use Sabre\DAV\Exception\NotAuthenticated; -class PasswordLoginForbidden extends Exception { +class PasswordLoginForbidden extends NotAuthenticated { const NS_OWNCLOUD = 'http://owncloud.org/ns';