Project

General

Profile

Actions

Bug #89646

closed

Uncaught TYPO3 Exception: Argument 2 passed to TYPO3\CMS\Core\Utility\IpAnonymizationUtility::anonymizeIp() must be of the type integer or null, string given

Added by Stephan Großberndt over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
scheduler
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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #85514: Task for anonymizeIp fails because of $this->mask passed as stringClosed2018-07-09

Actions
Actions #1

Updated by Gerrit Code Review over 4 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

Actions #2

Updated by Gerrit Code Review over 4 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

Actions #3

Updated by Stephan Großberndt over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Benni Mack over 4 years ago

  • Related to Bug #85514: Task for anonymizeIp fails because of $this->mask passed as string added
Actions

Also available in: Atom PDF