Project

General

Profile

Actions

Bug #13756

closed

External links to big files crash TYPO3

Added by Daniel Minder over 13 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Linkvalidator
Target version:
Start date:
2011-03-10
Due date:
% Done:

100%

Estimated time:
2.00 h
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

External links are fetched completely using t3lib_div:getURL(). For big files, this results in a crash of TYPO3 in line 3066 of class t3lib_div (TYPO3 4.5.2), which is this line:
$content .= stream_get_contents($fp);
Here, TYPO3 wants to append the whole content of the file to a variable - until the memory limit. Crash.

The only solution would be to fetch only the header (which would also speed up the link checking). But in class.tx_linkvalidator_linktype_external.php I find the comment
"try fetching the content of the URL (just fetching the headers does not work correctly)"

What's the problem about only fetching the headers? Is there any solution to this problem at all???


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #13432: 404 for external links with no redirectClosedPhilipp Gampe2011-02-28

Actions
Related to TYPO3 Core - Bug #13802: Add handling for HTTP 405 Method not allowedClosed2011-03-12

Actions
Related to TYPO3 Core - Feature #13680: Refactor external link, do not follow senseless loop, add user agent ClosedPhilipp Gampe2011-01-14

Actions
Related to TYPO3 Core - Task #28915: Refactor to t3lib_http_Request for external URLsClosedPhilipp Gampe2011-08-10

Actions
Has duplicate TYPO3 Core - Bug #25321: getUrl crashes when trying to retrieve a big fileRejectedPhilipp Gampe2011-03-14

Actions
Actions

Also available in: Atom PDF