diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-11-26 11:07:20 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-11-26 10:38:17 +0000 |
commit | 25f558d004b6452f5107df6455ebbfc9b18301f5 (patch) | |
tree | 3391946b1d3a0d5f56af197bd66ad676704c77ef /core/Controller | |
parent | a27f11e7ac15567a361f59db9f63e9a8a1d08f65 (diff) | |
download | nextcloud-server-25f558d004b6452f5107df6455ebbfc9b18301f5.tar.gz nextcloud-server-25f558d004b6452f5107df6455ebbfc9b18301f5.zip |
fix(TaskProcessing): Set up fs in getFileContentsInternalbackport/49489/stable30
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'core/Controller')
-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 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() . '/'); |