fix: fallback to full user setup if we cant find the expected mount root

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-14 17:39:00 +01:00
parent abe5499e14
commit 68cdd1b1ef

View file

@ -521,6 +521,10 @@ class SetupManager {
if (is_a($mountProvider, IPartialMountProvider::class, true)) {
$rootId = $cachedMount->getRootId();
$rootMetadata = $this->fileAccess->getByFileId($rootId);
if (!$rootMetadata) {
$this->setupForUser($user);
return;
}
$providerArgs = new MountProviderArgs($cachedMount, $rootMetadata);
// mark the path as cached (without children for now...)
$this->setupMountProviderPaths[$mountPoint] = self::SETUP_WITHOUT_CHILDREN;