diff options
author | Marcel Klehr <mklehr@gmx.net> | 2024-07-25 10:27:45 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2024-07-25 10:27:45 +0200 |
commit | 46c518f712ccdb95afb438b4bdaa7e68c1d0a8b8 (patch) | |
tree | af0d1e344130a94d904fece2c8dccf5b61be604f /lib | |
parent | aaa8af4b495a5c079c78af1908a5086ecb7b64df (diff) | |
download | nextcloud-server-46c518f712ccdb95afb438b4bdaa7e68c1d0a8b8.tar.gz nextcloud-server-46c518f712ccdb95afb438b4bdaa7e68c1d0a8b8.zip |
fix: Don't validate input again upon running a task
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TaskProcessing/Manager.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 2e67d12029a..73086b55e56 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1052,15 +1052,8 @@ class Manager implements IManager { public function prepareInputData(Task $task): array { $taskTypes = $this->getAvailableTaskTypes(); $inputShape = $taskTypes[$task->getTaskTypeId()]['inputShape']; - $inputShapeDefaults = $taskTypes[$task->getTaskTypeId()]['inputShapeDefaults']; - $inputShapeEnumValues = $taskTypes[$task->getTaskTypeId()]['inputShapeEnumValues']; $optionalInputShape = $taskTypes[$task->getTaskTypeId()]['optionalInputShape']; - $optionalInputShapeEnumValues = $taskTypes[$task->getTaskTypeId()]['optionalInputShapeEnumValues']; - $optionalInputShapeDefaults = $taskTypes[$task->getTaskTypeId()]['optionalInputShapeDefaults']; $input = $task->getInput(); - // validate input, again for good measure (should have been validated in scheduleTask) - $this->validateInput($inputShape, $inputShapeDefaults, $inputShapeEnumValues, $input); - $this->validateInput($optionalInputShape, $optionalInputShapeDefaults, $optionalInputShapeEnumValues, $input, true); $input = $this->removeSuperfluousArrayKeys($input, $inputShape, $optionalInputShape); $input = $this->fillInputFileData($task->getUserId(), $input, $inputShape, $optionalInputShape); return $input; |