From 72c1c89bcd4228e77e1d0e42a6e57eaacd5c0a1a Mon Sep 17 00:00:00 2001
From: Vincent Petry <pvince81@owncloud.com>
Date: Tue, 24 Mar 2015 22:08:11 +0100
Subject: [PATCH] Log forbidden in debug level

---
 lib/private/connector/sabre/exceptionloggerplugin.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/connector/sabre/exceptionloggerplugin.php b/lib/private/connector/sabre/exceptionloggerplugin.php
index a0dc6e7c182..efef6ea9a54 100644
--- a/lib/private/connector/sabre/exceptionloggerplugin.php
+++ b/lib/private/connector/sabre/exceptionloggerplugin.php
@@ -24,6 +24,9 @@ class ExceptionLoggerPlugin extends \Sabre\DAV\ServerPlugin {
 		// exactly the same time from two clients, only one client
 		// wins, the second one gets "Precondition failed"
 		'Sabre\DAV\Exception\PreconditionFailed' => true,
+		// forbidden can be expected when trying to upload to
+		// read-only folders for example
+		'Sabre\DAV\Exception\Forbidden' => true,
 	);
 
 	/** @var string */
-- 
GitLab