Project

General

Profile

Actions

Bug #69223

closed

dumpFileContents does not work when ['FE']['compressionLevel'] > 0

Added by Torben Hansen over 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Start date:
2015-08-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When ['FE']['compressionLevel'] > 0, dumpFileContents does not output any file, but throws the following exception:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1: PHP Warning: Cannot modify header information - headers already sent in /path/to/typo3_src/6.2/typo3_src-6.2.14/typo3/sysext/frontend/Classes/Utility/CompressionUtility.php

How to reproduce:

1. Set ['FE']['compressionLevel'] = 5
2. Dump a file from FAL like shown below

$storage = $this->resourceFactory->getDefaultStorage();
$file = $storage->getFile('test.jpg');
$storage->dumpFileContents($file, TRUE, 'test-filename.jpg');
Actions

Also available in: Atom PDF