Issue Bug Closed

#85316Anonymize IP scheduler tasks does not clean up log_data field

Felix Nagel 06/20/18, 12:48 updated 10/02/18, 10:44

Description

When using the new scheduler task (TYPO3\CMS\Scheduler\Task\IpAnonymizationTask) for anonymizing IP addresses (by default in sys_log table) some occurrences of a IP might be still existing.

Example (for logging a BE user login):

# Before task
details: User %s logged in from %s (%s)
IP: 123.456.789.123
log_data: a:3:{i:0;s:8:"john.doe";i:1;s:15:"123.456.789.123";i:2;s:0:"";}

# After task
details: User %s logged in from %s (%s)
IP: 123.456.789.0
log_data: a:3:{i:0;s:8:"john.doe";i:1;s:15:"123.456.789.123";i:2;s:0:"";}

The data used for the log module (field log_data)still contains the full IP address.
Not quite sure if there are more log item types that save the IP within the serialized data.

Reviews 2