Bug #85514
closed
Task for anonymizeIp fails because of $this->mask passed as string
Added by Stefan Neufeind about 6 years ago.
Updated over 4 years ago.
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.
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.
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.
- 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
- Status changed from New to Closed
See the other issue - thanks for the report. It's fixed now!
Also available in: Atom
PDF