From 787b10ba2f84962163f558fa6b38e5e05e28abf8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 8 Jun 2022 18:49:54 +0200 Subject: [PATCH] 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 --- lib/private/Files/SetupManager.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 9fb7b030e1da7..2390e3be9c9ec 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -403,6 +403,10 @@ public function setupForPath(string $path, bool $includeChildren = false): void return; } + if (!$this->isSetupStarted($user)) { + $this->oneTimeUserSetup($user); + } + $mounts = []; if (!in_array($cachedMount->getMountProvider(), $setupProviders)) { $setupProviders[] = $cachedMount->getMountProvider();