diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-11-26 11:07:20 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-11-26 11:07:20 +0100 |
commit | 3ac14af26b01fb1c630e52de4fc3ae52edef7051 (patch) | |
tree | b40d24cff9195b3dec7eccc1cd58bcb24668e5bf | |
parent | 57a2aa11ddb6a812b0789211c78ff35261d5856d (diff) | |
download | nextcloud-server-3ac14af26b01fb1c630e52de4fc3ae52edef7051.tar.gz nextcloud-server-3ac14af26b01fb1c630e52de4fc3ae52edef7051.zip |
fix(TaskProcessing): Set up fs in getFileContentsInternalfix/taskprocessing-api-get-file-contents
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r-- | core/Controller/TaskProcessingApiController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/TaskProcessingApiController.php b/core/Controller/TaskProcessingApiController.php index c8d3c60df36..925d4751383 100644 --- a/core/Controller/TaskProcessingApiController.php +++ b/core/Controller/TaskProcessingApiController.php @@ -349,6 +349,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() . '/'); |