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
100%
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.
Updated by Gerrit Code Review about 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62300
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62277
Updated by Stephan Großberndt about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cbf573a1e191d3504e7293657749a247f687cef7.
Updated by Benni Mack almost 5 years ago
- Related to Bug #85514: Task for anonymizeIp fails because of $this->mask passed as string added