Actions
Bug #87685
openMultiple entries in sys_file_processedfile caused by null entries in configuration
Status:
New
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
Start date:
2019-02-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Updated by Georg Ringer over 4 years ago
- Target version set to Candidate for Major Version
Updated by Benni Mack about 1 year ago
- Related to Bug #96116: imgResource Mask error added
Actions