Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-10-26 15:05:59 +0300
committerAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-10-26 15:05:59 +0300
commit550a73d84e435a827a1163fe25106f2fd0bc1be6 (patch)
tree64ca7ac3272c1917531bd184cdb42b3588f66490
parent43b60aa976b8f59213cd22632a1d77c04955b015 (diff)
handle 404 (43b60aa976b8f59213cd22632a1d77c04955b015)feature/remote-key
-rw-r--r--lib/remoteinstance.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/remoteinstance.php b/lib/remoteinstance.php
index d3a18da..21e5643 100644
--- a/lib/remoteinstance.php
+++ b/lib/remoteinstance.php
@@ -202,8 +202,10 @@ class RemoteInstance {
} catch (\Exception $e) {
$logger->logException($e, ["message" => "Failed to request federated key " . $file->getId(), "app" => self::App_Name]);
- self::update($remote, false);
- $logger->debug("Changed status for remote instance $remote to false", ["app" => self::App_Name]);
+ if ($e->getResponse()->getStatusCode() === 404) {
+ self::update($remote, false);
+ $logger->debug("Changed status for remote instance $remote to false", ["app" => self::App_Name]);
+ }
return null;
}