From 51bff1f93bad72d969c89f9905353eed9e6ad0d9 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 18 Oct 2021 10:24:57 +0200 Subject: [PATCH] Fix unable to login errors due to file system not being initialized This unifies the getStorageInfo with the stable21 and later branches and fix a login problems sometimes encountered. Signed-off-by: Carl Schwan --- apps/files/lib/Controller/ViewController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 158b454c79269..32b0b5f931fee 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -134,6 +134,7 @@ protected function renderScript($appName, $scriptName) { * @throws \OCP\Files\NotFoundException */ protected function getStorageInfo() { + \OC_Util::setupFS(); $dirInfo = \OC\Files\Filesystem::getFileInfo('/', false); return \OC_Helper::getStorageInfo('/', $dirInfo);