Issue Bug Closed

#83611Linkvalidator wrongly handles Guzzle exceptions for 40x status

Francois Suter 01/19/18, 10:36 updated 10/02/18, 10:53

Description

The linkvalidator tries to use HEAD requests to test URLs for external-type links. As this method may not be allowed, it falls back to GET.

This mechanism is broken since TYPO3 8, with the introduction of Guzzle, as Guzzle does not return a proper response with a status code in case of 40x errors. Instead it throws an exception, with the HTTP status code used as exception code.

The \TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype class needs to be adapted accordingly.

Reviews 4