Skip to content

Commit 68cdd1b

Browse files
committed
fix: fallback to full user setup if we cant find the expected mount root
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent abe5499 commit 68cdd1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Files/SetupManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ public function setupForPath(string $path, bool $includeChildren = false): void
521521
if (is_a($mountProvider, IPartialMountProvider::class, true)) {
522522
$rootId = $cachedMount->getRootId();
523523
$rootMetadata = $this->fileAccess->getByFileId($rootId);
524+
if (!$rootMetadata) {
525+
$this->setupForUser($user);
526+
return;
527+
}
524528
$providerArgs = new MountProviderArgs($cachedMount, $rootMetadata);
525529
// mark the path as cached (without children for now...)
526530
$this->setupMountProviderPaths[$mountPoint] = self::SETUP_WITHOUT_CHILDREN;

0 commit comments

Comments
 (0)