Project

General

Profile

Actions

Bug #87685

open

Multiple entries in sys_file_processedfile caused by null entries in configuration

Added by Mordamir almost 6 years ago. Updated over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Image Cropping
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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96116: imgResource Mask errorClosed2021-11-28

Actions
Actions #1

Updated by Georg Ringer over 4 years ago

  • Target version set to Candidate for Major Version
Actions #2

Updated by Benni Mack about 1 year ago

  • Related to Bug #96116: imgResource Mask error added
Actions

Also available in: Atom PDF