summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-09-14 14:43:54 +0200
committerGitHub <noreply@github.com>2020-09-14 14:43:54 +0200
commitc1ff011990294bf5eb431a82550be64a3775574f (patch)
tree0a49d98b47255c3b4acc0761827af3f363fe6a63 /apps
parente0e7f15b39ed118ab1c330b94c6b5e9c75fae284 (diff)
parent2dbd6424f766f202807e144ee9f117857722ccc1 (diff)
downloadnextcloud-server-c1ff011990294bf5eb431a82550be64a3775574f.tar.gz
nextcloud-server-c1ff011990294bf5eb431a82550be64a3775574f.zip
Merge pull request #22799 from nextcloud/bugfix/noid/dont-log-microsoft-webdav-client-trying-to-tag
Don't log Microsoft WebDAV client trying to tag things
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
index 0bd0a54d667..ad590c8cf34 100644
--- a/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php
@@ -32,6 +32,7 @@ use OCA\DAV\Connector\Sabre\Exception\FileLocked;
use OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden;
use OCP\Files\StorageNotAvailableException;
use OCP\ILogger;
+use Sabre\DAV\Exception\BadRequest;
use Sabre\DAV\Exception\Conflict;
use Sabre\DAV\Exception\Forbidden;
use Sabre\DAV\Exception\InvalidSyncToken;
@@ -54,6 +55,10 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
// the sync client uses this to find out whether files exist,
// so it is not always an error, log it as debug
NotFound::class => true,
+ // the sync client messed up their request
+ // (e.g. propfind for tags with string instead of int)
+ // so it is not always an error, log it as debug
+ BadRequest::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"