Project

General

Profile

Actions

Feature #70056

closed

Use guzzle

Added by Georg Ringer about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2015-09-23
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Add guzzle as depencency and deprecate HttpRequest


Related issues 9 (0 open9 closed)

Related to TYPO3 Core - Bug #67838: Cannot instantiate HttpRequestClosedMathias Brodala2015-06-30

Actions
Related to TYPO3 Core - Feature #28626: Refactor t3lib_div::getUrl()ClosedBenni Mack2011-08-01

Actions
Related to TYPO3 Core - Bug #75757: FAL: Exception thrown if image for youtube video can't be fetchedClosed2016-04-18

Actions
Related to TYPO3 Core - Bug #78196: in installtool there is no curluse under [SYS] Closed2016-10-08

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
Related to TYPO3 Core - Bug #84170: Inconsistent lib value in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() since GuzzleHttp switchClosed2018-03-07

Actions
Related to TYPO3 Core - Bug #84171: \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() Request-Header format changed from array of strings to associative array in GuzzleHttp conversionClosed2018-03-07

Actions
Related to TYPO3 Core - Bug #84173: TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() returns content_type as array instead of stringClosed2018-03-07

Actions
Related to TYPO3 Core - Bug #85491: GeneralUtility:getUrl with includeHeaders=2 uses GET instead of HEADClosedMarkus Klein2018-07-05

Actions
Actions #1

Updated by Gerrit Code Review about 9 years ago

  • Status changed from New to Under Review

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43508

Actions #2

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43508

Actions #3

Updated by Gerrit Code Review about 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #4

Updated by Gerrit Code Review about 9 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #5

Updated by Christian Kuhn about 9 years ago

First: I want guzzle, too!

But imho, this area needs a full re-work and this patch does not go far enough.

Situation:
At the moment we have 4 (!) ways to fetch remote content:
  • getUrl with curl
  • getUrl with fsock
  • getUrl with file_get_contents
  • http2 with a slim core "fassade" that is extending http2.

Additionally we have a series of configuration options that are half deprecated within typo3_conf_vars. Furthermore getUrl() is also able to retrieve local files.

Technical debts:
  • getUrl: fetching local files and getting remote content are 2 different things, getUrl hides that, but imho a controller should know and steer this. so hiding these 2 concerns is not a good idea. core could help with a helper to find out if a given string is a local page number, a local file or an external ressource, maybe more. So in general i'd like to have getUrl() deprecated!
  • http2: the "fassade" still exposes all http2 details while it should probably hide for instance the configuration setters to consumers.
  • current pending patch with guzzle creates a direct dependency from a controller to guzzle without a fassade. there is not even a way to transfer configuration options from core to initialize guzzle options.
  • there is no sane default configuration / detection done.

If we start fixing this mess with guzzle, I'd require to have some core support that fixes all of the above stuff and does not just add something. I want the technical debt to be solved once and for all, in detail:

  • Have a stable API to fetch remote content that does not change if we substitute the implementation with something else.
  • Have a proper detection of settings within install tool.
  • Do not expose the whole guzzle API to the outside but only things that make sense for consumers, and clearly state what is not exposed. Goal is here to have a package in the core that is properly pre-configured. If extensions need more, they still may use guzzle directly, but then they're on their own.
  • Separate remote fetching from local ressources, help extensions to find out which type of a resource they are handling so they can steer further stuff.
  • Get rid of getUrl()

In general I'd like to finally have a proper modeling for this stuff in the core and a solution path of things that need to be done instead of cowboy hacking guzzle into the system now. The above are just some ideas, I'd love to have some feedback / more detailed discussion and will help with finding a solution path if someone wants to do something like that.

Actions #6

Updated by Helmut Hummel about 9 years ago

  • Status changed from Under Review to New

Christian perfectly outlined how we should proceed. Anyone up to take over this task? Georg?

Actions #7

Updated by Philipp Gampe about 9 years ago

Well, I second this, although I already did most of the work years ago. I hope now since change is more accepted and separation of concerns came into focus that this getUrl mess is finally resolved.

Actions #8

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #9

Updated by Gerrit Code Review over 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #10

Updated by Gerrit Code Review over 8 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #11

Updated by Gerrit Code Review over 8 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #12

Updated by Gerrit Code Review over 8 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #13

Updated by Gerrit Code Review over 8 years ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #14

Updated by Gerrit Code Review over 8 years ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #15

Updated by Gerrit Code Review over 8 years ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #16

Updated by Gerrit Code Review over 8 years ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #17

Updated by Gerrit Code Review over 8 years ago

Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #18

Updated by Gerrit Code Review over 8 years ago

Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #19

Updated by Gerrit Code Review over 8 years ago

Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #20

Updated by Gerrit Code Review over 8 years ago

Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #21

Updated by Gerrit Code Review over 8 years ago

Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #22

Updated by Gerrit Code Review over 8 years ago

Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/43508

Actions #23

Updated by Benni Mack over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #24

Updated by Felix Buenemann over 6 years ago

  • Related to Bug #84167: Negation Bug in TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() added
Actions #25

Updated by Felix Buenemann over 6 years ago

  • Related to Bug #84170: Inconsistent lib value in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() since GuzzleHttp switch added
Actions #26

Updated by Felix Buenemann over 6 years ago

  • Related to Bug #84171: \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() Request-Header format changed from array of strings to associative array in GuzzleHttp conversion added
Actions #27

Updated by Felix Buenemann over 6 years ago

  • Related to Bug #84173: TYPO3 8.7 GuzzleHttp \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() returns content_type as array instead of string added
Actions #28

Updated by Markus Klein over 6 years ago

  • Related to Bug #85491: GeneralUtility:getUrl with includeHeaders=2 uses GET instead of HEAD added
Actions #29

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF