Project

General

Profile

Actions

Bug #84170

closed

Inconsistent lib value in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() since GuzzleHttp switch

Added by Felix Buenemann over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-03-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

Since the conversion of \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() from cURL to GuttleHttp in TYPO3 8 (see #70056), the return value for the lib ken in the $report is inconsistent between errors (Guzzle Exception) and other responses.

If an exception is captured the lib value returns GuzzleHttp (which is useful), in other cases it returns http (which is pretty non-descript).

The value should not change between a (captured) exception and a normal response, so I suggest always using GuzzleHttp, since the old value was cURL.

The proposed patch against master drops http, so GuzzleHttp is always returned. The patch also applies fine to the 8.7 branch with a line offset.


Files


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #70056: Use guzzleClosedGeorg Ringer2015-09-23

Actions
Related to TYPO3 Core - Bug #84167: Negation Bug in TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl()ClosedMathias Schreiber2018-03-07

Actions
Actions

Also available in: Atom PDF