Project

General

Profile

Actions

Bug #81209

closed

compressionLevel and dumpFileContents results in empty files

Added by Jan Kiesewetter over 7 years ago. Updated over 7 years ago.

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.

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

Actions #1

Updated by Wouter Wolters over 7 years ago

  • Status changed from New to Rejected

Thanks for the report but this duplicates #69223 , closing now. Please continue in #69223

Actions

Also available in: Atom PDF