]> source.dussan.org Git - nextcloud-server.git/commitdiff
perform onetime setup earlier to ensure wrappers are registered on time 32768/head
authorRobin Appelman <robin@icewind.nl>
Wed, 8 Jun 2022 16:49:54 +0000 (18:49 +0200)
committerRobin Appelman <robin@icewind.nl>
Wed, 8 Jun 2022 16:49:54 +0000 (18:49 +0200)
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>
lib/private/Files/SetupManager.php

index 040ba6b898f4e44aabaf2df8394f1057c8752a56..2bcaa234c2955f9983ca82c559159feceb65649c 100644 (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();