From 5785ad6b39445c741cfa4cd26789582712bd1fb6 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 14 Aug 2017 14:13:11 +0200 Subject: [PATCH] Prevent cert manager to access FS before an upgrade --- lib/private/Http/Client/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index b12c4147ac9a..7235117c3a5a 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -69,7 +69,7 @@ private function setDefaultOptions() { // If the instance is not yet setup we need to use the static path as // $this->certificateManager->getAbsoluteBundlePath() tries to instantiiate // a view - if ($this->config->getSystemValue('installed', false)) { + if ($this->config->getSystemValue('installed', false) && !\OCP\Util::needUpgrade()) { $this->client->setDefaultOption('verify', $this->certificateManager->getAbsoluteBundlePath(null)); } else { $this->client->setDefaultOption('verify', \OC::$SERVERROOT . '/resources/config/ca-bundle.crt');