Bug #89788
closedScheduler task for IP anonymization exclusion
100%
Description
Hi,
in the scheduler task for IP anonymization (TYPO3\CMS\Scheduler\Task\IpAnonymizationTask) only and always the masked IP addresses for the last 2 bytes are excluded.
The exclusion has to be dynamic concerning the defined selection. The problem exists in the TYPO3 Version 7, 8 and 9.
The fix could be as following:
... if ($this->mask == 2) { $notLikeMaskPattern = '%.0.0'; } else { $notLikeMaskPattern = '%.0'; } ... $queryBuilder->expr()->notLike( $configuration['ipField'], $queryBuilder->createNamedParameter($notLikeMaskPattern, \PDO::PARAM_STR) ), ...
Thanks for fixing.
Regards.
Updated by Gerrit Code Review almost 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/+/62992
Updated by Gerrit Code Review almost 5 years ago
Patch set 2 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/+/62992
Updated by Gerrit Code Review almost 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/+/63225
Updated by Guido Schmechel almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9323dc5ab18b31d388632e44f24a1c93dc8c5b83.
Updated by Guido Schmechel about 4 years ago
- Related to Bug #92098: IpAnonymizationTask Bug added