summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-03 11:58:55 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-03 11:58:55 +0100
commit0b4d18673e50a5c4f271a7fdfc1de47b47342942 (patch)
treeb3d8f7a7338d76b3b9223408da7ea9caea6d43a3 /apps/dav
parent31c0efc29982516409982e325cc2f74cb0c9b3ab (diff)
downloadnextcloud-server-0b4d18673e50a5c4f271a7fdfc1de47b47342942.tar.gz
nextcloud-server-0b4d18673e50a5c4f271a7fdfc1de47b47342942.zip
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 <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php4
1 files changed, 4 insertions, 0 deletions
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 */