From 0b4d18673e50a5c4f271a7fdfc1de47b47342942 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 3 Jan 2018 11:58:55 +0100 Subject: Do not log user errors as log level 4 * hides log entries for the case the parent folder does not exist Signed-off-by: Morris Jobke --- apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/dav') diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php index 68c9a1b415f..26e29e20d12 100644 --- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php +++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php @@ -29,6 +29,7 @@ namespace OCA\DAV\Connector\Sabre; use OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden; use OCP\Files\StorageNotAvailableException; use OCP\ILogger; +use Sabre\DAV\Exception\Conflict; use Sabre\DAV\Exception\Forbidden; use Sabre\DAV\Exception\InvalidSyncToken; use Sabre\DAV\Exception\NotAuthenticated; @@ -61,6 +62,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin { // happens if some a client uses the wrong method for a given URL // the error message itself is visible on the client side anyways NotImplemented::class => true, + // happens when the parent directory is not present (for example when a + // move is done to a non-existent directory) + Conflict::class => true, ]; /** @var string */ -- cgit v1.2.3