Issue Bug Rejected

#81209compressionLevel and dumpFileContents results in empty files

Jan Kiesewetter 05/12/17, 14:33 updated 05/12/17, 20:14

Description

If

$GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']

is set the function dumpFileContents, e.g.:

/**
 * @param FileReference $file
 * @throws \Exception
 */
public function deliverAction(FileReference $file)
{
    $file->getOriginalResource()->getOriginalFile()->getStorage()->dumpFileContents(
        $file->getOriginalResource(),
        true
    );
    exit;
}

will send a file with a Content-Length header of 0.

https://git.typo3.org/Packages/TYPO3.CMS.git/blob/9219e4fa9af5e4bd2ea1f208056cb396667cce45:/typo3/sysext/core/Classes/Resource/ResourceStorage.php#l1635

Also effects EXT:jumpurl
https://github.com/FriendsOfTYPO3/jumpurl/issues/5

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.