#105575TaskSerializer::deserialize(): Argument #1 ($serializedTask) must be of type string, null given
Description
(1/1) TypeError
TYPO3\CMS\Scheduler\Task\TaskSerializer::deserialize(): Argument #1 ($serializedTask) must be of type string, null given, called in /var/www/html/vendor/typo3/cms-scheduler/Classes/Controller/SchedulerModuleController.php on line 424
in /var/www/html/vendor/typo3/cms-scheduler/Classes/Task/TaskSerializer.php line 36
Happens in the scheduler in an older, updated instance where there might be data that is not expected.
$taskRecord = $this->taskRepository->findRecordByUid($taskUid); in line 408 is null as the record is not found but the try catch block expects an \OutOfBoundsException.
a) throw an out of bounds exception when a scheduler task is not found
b) If the task is found but does not have the key serialized_task_object fall back to an empty string as the methods expect a string. Maybe some kind of exception would be even better here.
Reviews 2
Files 1
History 49
-
Lina Wolf commented and changed attached Bug105575.patch <span data-processor="relativetime" data-value="2024-11-12T06:42:23+00:00" > 11/12/24, 06:42 </span>
-
Lina Wolf changed assigned to Lina Wolf <span data-processor="relativetime" data-value="2025-02-08T12:54:32+00:00" > 02/08/25, 12:54 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 88103 status
NewUnder Review <span data-processor="relativetime" data-value="2025-02-08T13:14:41+00:00" > 02/08/25, 13:14 </span> -
Gerrit Code Review pushed patch set 2 for main to change 88103 <span data-processor="relativetime" data-value="2025-02-08T14:41:16+00:00" > 02/08/25, 14:41 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 88103 <span data-processor="relativetime" data-value="2025-02-09T06:48:18+00:00" > 02/09/25, 06:48 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 88103 <span data-processor="relativetime" data-value="2025-02-09T18:25:46+00:00" > 02/09/25, 18:25 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88124 <span data-processor="relativetime" data-value="2025-02-09T19:23:20+00:00" > 02/09/25, 19:23 </span>
-
Lina Wolf commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-02-09T19:40:09+00:00" > 02/09/25, 19:40 </span>Applied in changeset commit:376c694724d80a08501fda111811196c0f841442.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:32:15+00:00" > 12/02/25, 14:32 </span>
This patch solves it for me: