]> source.dussan.org Git - nextcloud-server.git/commit
Set up FS before querying storage info in settings 24156/head
authorVincent Petry <vincent@nextcloud.com>
Fri, 13 Nov 2020 15:52:08 +0000 (16:52 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 16 Nov 2020 11:06:35 +0000 (11:06 +0000)
commit32758894a4ca492ce069c69af6fcf98b80809264
tree65285e960a8ad7c80862fc9005f97330e88d4150
parent7a821da1bcfe0913afc5b5dcfdede75e4d89902c
Set up FS before querying storage info in settings

The personal info section of the personal settings is querying the
storage quota information. For this it requires the FS to be setup which
is not always guaranteed.

This fixes an issue where refreshing the settings page would cause it to
fail after Redis caches are full. It is likely that when Redis cache is
populated, some code path is initializing the FS, so it works so far.
But when the cache is populated, that code path is skipped so the FS is
not guaranteed to be setup...

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/settings/lib/Settings/Personal/PersonalInfo.php
lib/private/legacy/OC_Helper.php