Project

General

Profile

Actions

Bug #104706

closed

GeneralUtility::getUrl() does not catch all Guzzle exceptions anymore

Added by Markus Zipfel 3 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
Start date:
2024-08-22
Due date:
% Done:

100%

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

Description

In getUrl() only a \GuzzleHttp\Exception\RequestException is catched. This piece of code exists since April 20, 2016.

At that time ConnectException and RequestException were not yet separated in Guzzle. But that changed in January 2020 and since then, they both extend TransferException.

So I think that GeneralUtility::getUrl() should catch \GuzzleHttp\Exception\TransferException.

See also: https://github.com/guzzle/guzzle/blob/7.9.2/UPGRADING.md?plain=1#L22


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Task #104707: [BUGFIX] Also catch Guzzle `ConnectException` in `GeneralUtility::getUrl()`Rejected2024-08-22

Actions
Actions

Also available in: Atom PDF