]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set retry = false for forbidden exception. 21589/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 25 Jun 2020 21:33:14 +0000 (23:33 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 25 Jun 2020 21:34:41 +0000 (23:34 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/Files/Storage/DAV.php

index 2974064f3a59a34c8c1a31c4ec46b4f4531bfa46..269cd49b4e1c63d10f8b04e9893f7e9116dec528 100644 (file)
@@ -858,7 +858,7 @@ class DAV extends Common {
                                return;
                        } elseif ($e->getHttpStatus() === Http::STATUS_FORBIDDEN) {
                                // The operation is forbidden. Fail somewhat gracefully
-                               throw new ForbiddenException(get_class($e) . ':' . $e->getMessage());
+                               throw new ForbiddenException(get_class($e) . ':' . $e->getMessage(), false);
                        }
                        throw new StorageNotAvailableException(get_class($e) . ': ' . $e->getMessage());
                } elseif ($e instanceof ClientException) {