#87685Multiple entries in sys_file_processedfile caused by null entries in configuration
Description
Different Viewhelpers and Extensions fill the configuration of processed files in different ways to achive the same goal. Mostly the differences in the configuration array comes from null values. In Viewhelpers these are caused by directly assigning an argument to the configuration. Example:
$configuration['minWidth'] = $this->arguments['minWidth'];
As far as i can see in the code all falsey values are ignored by the processing. But those null values can cause a double processing of the same image with the same instructions with diffenent entries in sys_file_processedfile and the proccessed directory. For our installation there are roughly 10% doublettes.
The null or falsey values could easily removed by changing line 384 in file typo3/sysext/core/Classes/Resource/ProcessedFile.php from current master
$properties['configuration'] = serialize($this->processingConfiguration);
to
$properties['configuration'] = serialize(array_filter($this->processingConfiguration));
The difficult part would be to force a regeneration of all processed files.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 2
History 4
-
Georg Ringer changed target version <span data-processor="relativetime" data-value="2020-03-09T00:58:48+00:00" > 03/09/20, 00:58 </span>
-
Benni Mack changed Related to #96116 <span data-processor="relativetime" data-value="2023-09-19T08:03:01+00:00" > 09/19/23, 08:03 </span>
-
Rémy DANIEL changed Related to #101446 <span data-processor="relativetime" data-value="2026-02-20T15:30:49+00:00" > 02/20/26, 15:30 </span>
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-16T14:52:28+00:00" > 10/16/26, 14:52 </span>
closing that as duplicate of #101446 to cleanup forge – it is the same issue