Actions
Bug #89646
closedUncaught TYPO3 Exception: Argument 2 passed to TYPO3\CMS\Core\Utility\IpAnonymizationUtility::anonymizeIp() must be of the type integer or null, string given
Status:
Closed
Priority:
Should have
Assignee:
Category:
scheduler
Target version:
Start date:
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:
Description
The issue happens for systems upgrading from TYPO3 8 to TYPO3 9 as the scheduler task contains $mask
in its serialized state as a string
but in TYPO3 9 when handing it over to IpAnonymizationUtility::anonymizeIp()
it must be an int
due to strict_types
In TYPO3 9 when saving the task an int cast has been added in
https://review.typo3.org/c/Packages/TYPO3.CMS/+/57313/9/typo3/sysext/scheduler/Classes/Task/IpAnonymizationAdditionalFieldProvider.php#208
But this will not work for upgraded TYPO3 8 installations if the task is not saved again, as IpAnonymizationAdditionalFieldProvider is not executed at all
when the task is executed, the task is just unserialized.
Actions