summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-13 18:04:23 +0200
committerGitHub <noreply@github.com>2017-10-13 18:04:23 +0200
commit4e0c078f48e9a0fb93bfad4f94cb1a06ebf96d3f (patch)
treef9fc6f590711ebf3d5aa61a0d013a122fa263727
parent547f5afa5b9639093c2fb07723dacf559cd6c282 (diff)
parent7c53f921a9e789dcd932a13122f7144239cd0eb3 (diff)
downloadnextcloud-server-4e0c078f48e9a0fb93bfad4f94cb1a06ebf96d3f.tar.gz
nextcloud-server-4e0c078f48e9a0fb93bfad4f94cb1a06ebf96d3f.zip
Merge pull request #6826 from nextcloud/fix-class-name-in-exception-logger-plugin
Fix class name in exception logger plugin
-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 */