Project

General

Profile

Actions

Bug #10589

closed

HTTP errors might not be detected

Added by Tolleiv Nietsch about 14 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Linkvalidator
Target version:
-
Start date:
2010-11-02
Due date:
% Done:

0%

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

Description

In case the request itself went fine but returned an HTTP 404 (or anything > 400) the result array comming back from t3lib_div::getURL() doesn't indicate that error with $report["error"] = 0, therefore the http_code itself needs to be checked too...

The attached patch fixes it.

How to test: Create a link pointing to http://typo3.com/Pagedoesntexists.123456789.html (will cause 404) or http://typo3.org/Pagedoesntexists.123456789.html (will cause 503).


Files

v1.patch (2.5 KB) v1.patch Tolleiv Nietsch, 2010-11-02 14:22
Actions #1

Updated by Michael Miousse about 14 years ago

Your are right, ill test your patch later and will commit if evrything is alright.

Actions #2

Updated by Steffen Kamper almost 14 years ago

any news?

Actions #3

Updated by Pierre Boivin almost 14 years ago

  • Assignee set to Pierre Boivin
Actions #4

Updated by Pierre Boivin almost 14 years ago

I have combined it to the issue #10907. So 403, 404 and other errors will be checked.

Actions #5

Updated by Pierre Boivin almost 14 years ago

  • Status changed from Needs Feedback to Resolved
Actions #6

Updated by Chris topher over 12 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Michael Stucki almost 11 years ago

  • Category set to Linkvalidator
Actions #8

Updated by Michael Stucki almost 11 years ago

  • Project changed from 1510 to TYPO3 Core
  • Category changed from Linkvalidator to Linkvalidator
Actions

Also available in: Atom PDF