From 25f558d004b6452f5107df6455ebbfc9b18301f5 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 26 Nov 2024 11:07:20 +0100 Subject: fix(TaskProcessing): Set up fs in getFileContentsInternal Signed-off-by: Marcel Klehr --- core/Controller/TaskProcessingApiController.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/Controller/TaskProcessingApiController.php') diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index da1f339beac..26fc93a4cd3 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -351,6 +351,9 @@ class TaskProcessingApiController extends \OCP\AppFramework\OCSController { if (!in_array($fileId, $ids)) { return new DataResponse(['message' => $this->l->t('Not found')], Http::STATUS_NOT_FOUND); } + if ($task->getUserId() !== null) { + \OC_Util::setupFS($task->getUserId()); + } $node = $this->rootFolder->getFirstNodeById($fileId); if ($node === null) { $node = $this->rootFolder->getFirstNodeByIdInPath($fileId, '/' . $this->rootFolder->getAppDataDirectoryName() . '/'); -- cgit v1.2.3