Bug #105575
closedTaskSerializer::deserialize(): Argument #1 ($serializedTask) must be of type string, null given
100%
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.
Files
Updated by Lina Wolf 4 months ago
- File Bug105575.patch Bug105575.patch added
This patch solves it for me:
Updated by Gerrit Code Review about 1 month ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88103
Updated by Gerrit Code Review about 1 month ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88103
Updated by Gerrit Code Review about 1 month ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88103
Updated by Gerrit Code Review about 1 month ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88103
Updated by Gerrit Code Review about 1 month ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/88124
Updated by Lina Wolf about 1 month ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 376c694724d80a08501fda111811196c0f841442.