aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-06-08 18:49:54 +0200
committerRobin Appelman <robin@icewind.nl>2022-06-08 18:49:54 +0200
commita937ab03dd29d59081f9b10bbca13414affa9637 (patch)
tree734d0e2f9e787200c727e29e8f88e32f8d5607c7
parentde6b0dadbe5190325d0507ba1438880d772d8a8a (diff)
downloadnextcloud-server-a937ab03dd29d59081f9b10bbca13414affa9637.tar.gz
nextcloud-server-a937ab03dd29d59081f9b10bbca13414affa9637.zip
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>
-rw-r--r--lib/private/Files/SetupManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php
index 040ba6b898f..2bcaa234c29 100644
--- a/lib/private/Files/SetupManager.php
+++ b/lib/private/Files/SetupManager.php
@@ -403,6 +403,10 @@ class SetupManager {
return;
}
+ if (!$this->isSetupStarted($user)) {
+ $this->oneTimeUserSetup($user);
+ }
+
$mounts = [];
if (!in_array($cachedMount->getMountProvider(), $setupProviders)) {
$setupProviders[] = $cachedMount->getMountProvider();