perform onetime setup earlier to ensure wrappers are registered on time

this fixes an issue with wrappers like encryption not always being applied to mountpoint that create the storage object directly (such as external storage)

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-06-08 18:49:54 +02:00 committed by backportbot-nextcloud[bot]
parent 3a3c3b5e1d
commit 787b10ba2f

View file

@ -403,6 +403,10 @@ class SetupManager {
return;
}
if (!$this->isSetupStarted($user)) {
$this->oneTimeUserSetup($user);
}
$mounts = [];
if (!in_array($cachedMount->getMountProvider(), $setupProviders)) {
$setupProviders[] = $cachedMount->getMountProvider();