summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-25 11:51:24 +0200
committerGitHub <noreply@github.com>2017-10-25 11:51:24 +0200
commitaef69efe2e9530cdec587020845dd6a5b5918b57 (patch)
treeec388070bca04c82291e5ac911abc776de053fa6 /apps/dav/lib
parent469285a505d5fb6feb26bce1de78be4f95d6f561 (diff)
parent89d4e1f2abf23c2c9cf460ede2447d356312b7f2 (diff)
downloadnextcloud-server-aef69efe2e9530cdec587020845dd6a5b5918b57.tar.gz
nextcloud-server-aef69efe2e9530cdec587020845dd6a5b5918b57.zip
Merge pull request #6942 from nextcloud/12-6826
[stable12] Fix class name in exception logger plugin
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
index ca2195fc65a..ba7ea13c548 100644
--- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
@@ -27,28 +27,34 @@
namespace OCA\DAV\Connector\Sabre;
+use OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden;
+use OCP\Files\StorageNotAvailableException;
use OCP\ILogger;
+use Sabre\DAV\Exception\Forbidden;
+use Sabre\DAV\Exception\NotAuthenticated;
+use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\Exception\PreconditionFailed;
use Sabre\DAV\Exception\ServiceUnavailable;
class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
protected $nonFatalExceptions = [
- 'Sabre\DAV\Exception\NotAuthenticated' => true,
+ NotAuthenticated::class => true,
// If tokenauth can throw this exception (which is basically as
// NotAuthenticated. So not fatal.
- 'OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden' => true,
+ PasswordLoginForbidden::class => 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,
+ NotFound::class => true,
// this one mostly happens when the same file is uploaded at
// exactly the same time from two clients, only one client
// wins, the second one gets "Precondition failed"
- 'Sabre\DAV\Exception\PreconditionFailed' => true,
+ PreconditionFailed::class => true,
// forbidden can be expected when trying to upload to
// read-only folders for example
- 'Sabre\DAV\Exception\Forbidden' => true,
+ Forbidden::class => true,
// Happens when an external storage or federated share is temporarily
// not available
- 'Sabre\DAV\Exception\StorageNotAvailableException' => true,
+ StorageNotAvailableException::class => true,
];
/** @var string */