Bug #85514
closedTask for anonymizeIp fails because of $this->mask passed as string
0%
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.
Updated by Stefan Neufeind about 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.
Updated by Lidia Demin about 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.
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
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!