Checksum needs to be updated after file processing
When recreating an already processed file the LocalImageProcessor
updates the width, height and filesize of the new image but not
Because of that the file will be deleted in FileProcessingService
when $processedFile->isProcessed() is called. Since the checksum
is wrong this call assumes that the file needs to be recreated and
deletes the "old" file on the go.
This will lead to an exception in this request, when getPublicUrl is
called on this object.
Since the checksum is not only based on the processing configuration
but also on the graphic configuration, these exceptions only occur
when the graphic configuration is changes (e.g. in a deploy scenario).
The problem can easily be reproduced by enforcing
a change of the GFX configuration e.g. by adding the
following line to AdditionalConfiguration.php
$GLOBALS['TYPO3_CONF_VARS']['GFX']['foo'] = uniqid()
Then an exception is thrown for every processed file on every request.
Updated by Andreas Wolf over 8 years ago
The triggers a sham bug - the filename of the processed file is not updated, so it seems as if the relation between the processed file and the original file is broken. See #45168 and #44616 for details.
Don't see this as a blame, this is just a note so nobody searches for this "bug" again for hours :-/.