Actions
Bug #81209
closedcompressionLevel and dumpFileContents results in empty files
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-05-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Also effects EXT:jumpurl
https://github.com/FriendsOfTYPO3/jumpurl/issues/5
Actions