#66614FAL processed files are deleted
Description
How to reproduce
- set `config.noScaleUp = 0` in TS
- add a magic image to RTE
- preview the page in FE
Result: Image broken
Root cause
Setting config.noScaleUp causes this line to be executed in typo3/sysext/frontend/Classes/Page/PageGenerator.php:88
$GLOBALS['TYPO3_CONF_VARS']['GFX']['im_noScaleUp'] = isset($GLOBALS['TSFE']->config['config']['noScaleUp']) ? '' . $GLOBALS['TSFE']->config['config']['noScaleUp'] : $GLOBALS['TYPO3_CONF_VARS']['GFX']['im_noScaleUp'];
This makes [‘GFX’][‘im_noScaleUp’] a string, while in BE (when the preview image is generated in RTE) this is only loaded from install tool, where this is a boolean value.
This tiny difference has the effect that the calculated checksums used to determine whether a processed file already exists mismatch and the already generated processed file is deleted from disk.
Reviews 6
- main 40576[BUGFIX] Make ProcessedFileChecksumUpdate compatible with DBAL
- TYPO3_6-2 40143[BUGFIX] Avoid unnecessary generation of processed files
- TYPO3_6-2 40145[BUGFIX] SQL parser does not support string as join condition
- main 40144[BUGFIX] SQL parser does not support string as join condition
- main 39644[BUGFIX] Avoid unnecessary generation of processed files
- main 38972[BUGFIX] Assure ['GFX']['im_noScaleUp'] is boolean