Project

General

Profile

Actions

Bug #10589

closed

HTTP errors might not be detected

Added by Tolleiv Nietsch over 13 years ago. Updated over 10 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 over 13 years ago

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

Actions #2

Updated by Steffen Kamper over 13 years ago

any news?

Actions #3

Updated by Pierre Boivin over 13 years ago

  • Assignee set to Pierre Boivin
Actions #4

Updated by Pierre Boivin over 13 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 over 13 years ago

  • Status changed from Needs Feedback to Resolved
Actions #6

Updated by Chris topher about 12 years ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Michael Stucki over 10 years ago

  • Category set to Linkvalidator
Actions #8

Updated by Michael Stucki over 10 years ago

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

Also available in: Atom PDF