Project

General

Profile

Actions

Bug #85514

closed

Task for anonymizeIp fails because of $this->mask passed as string

Added by Stefan Neufeind almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2018-07-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In typo3/sysext/scheduler/Classes/Task/IpAnonymizationTask.php the property $this->mask is declared as int. But the scheduler sets the property as a string, from a defined task.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #89646: Uncaught TYPO3 Exception: Argument 2 passed to TYPO3\CMS\Core\Utility\IpAnonymizationUtility::anonymizeIp() must be of the type integer or null, string givenClosedStephan Großberndt

Actions
Actions #1

Updated by Stefan Neufeind almost 6 years ago

I would have expected the declared strict types make PHP convert the property, but we might need to do that ourselves. Should we maybe solve it in the scheduler in general so properties get passed to a task with their correct type?

We also need to check whether this affects the anonymization-tasks in 7LTS / 8LTS as well. Possibly not if they use weak types - but we need to check.

Actions #2

Updated by Lidia Demin almost 5 years ago

I can confirm this issue. It seems to occur in installations which were upgraded from earlier TYPO3 versions.
Workaround: set the mask level to a different value and then choose the option needed again.

Actions #3

Updated by Benni Mack over 4 years ago

  • Related to Bug #89646: Uncaught TYPO3 Exception: Argument 2 passed to TYPO3\CMS\Core\Utility\IpAnonymizationUtility::anonymizeIp() must be of the type integer or null, string given added
Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

See the other issue - thanks for the report. It's fixed now!

Actions

Also available in: Atom PDF