aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-06-25 16:18:30 -0700
committerChristopher Ng <chrng8@gmail.com>2024-10-16 16:08:46 -0700
commitb14e53666b24873fd7fa66aa3b2cc5fa4f5142d3 (patch)
tree0adeb2f08357b411c25fbd6d9448fdc8d6e40094
parent8bfc7fcc64e84ab8feea4d5808f61f762f84f054 (diff)
downloadnextcloud-server-b14e53666b24873fd7fa66aa3b2cc5fa4f5142d3.tar.gz
nextcloud-server-b14e53666b24873fd7fa66aa3b2cc5fa4f5142d3.zip
fix: Fix "Unknown path" error when source user `files` folder has not been initialized
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 1461ee1400e..16300cba80e 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -107,7 +107,9 @@ class OwnershipTransferService {
// Requesting the user folder will set it up if the user hasn't logged in before
// We need a setupFS for the full filesystem setup before as otherwise we will just return
// a lazy root folder which does not create the destination users folder
+ \OC_Util::setupFS($sourceUser->getUID());
\OC_Util::setupFS($destinationUser->getUID());
+ \OC::$server->getUserFolder($sourceUser->getUID());
\OC::$server->getUserFolder($destinationUser->getUID());
Filesystem::initMountPoints($sourceUid);
Filesystem::initMountPoints($destinationUid);