Composer Dependency Changed Release Blocker PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar SniperSister
SniperSister
11 Mar 2024

Pull Request for Issue #38963 and #42973

Summary of Changes

In #35568 a change was merged into the JHTTP socket driver, increasing the accepted HTTP version for the client from 1.0 to 1.1.

That change introduce the issue described in #38963: HTTP 1.1 defines the chunked transfer mode which is mandatory for all clients implementing HTTP 1.1 - as our socket-based client however does not support chunked responses, a chunked response causes an infinite loop.

Testing Instructions

  • Create a socket-based JHTTP request to a server responding with a chunked response, i.e. by using this code block:
    $http = \Joomla\CMS\Http\HttpFactory::getHttp([], 'socket'); $response = $http->get('https://update.joomla.org/cms/root.json');

Actual result BEFORE applying this Pull Request

  • Infinite loop

Expected result AFTER applying this Pull Request

  • Response returned

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar SniperSister SniperSister - open - 11 Mar 2024
avatar SniperSister SniperSister - change - 11 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2024
Category Libraries
avatar SniperSister SniperSister - change - 11 Mar 2024
The description was changed
avatar SniperSister SniperSister - edited - 11 Mar 2024
avatar richard67 richard67 - change - 11 Mar 2024
The description was changed
avatar richard67 richard67 - edited - 11 Mar 2024
avatar LadySolveig LadySolveig - change - 11 Mar 2024
Labels Added: Release Blocker PR-5.1-dev
avatar HLeithner HLeithner - test_item - 11 Mar 2024 - Tested successfully
avatar HLeithner
HLeithner - comment - 11 Mar 2024

I have tested this item ✅ successfully on f54a18f

Works now


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43002.

avatar alikon
alikon - comment - 11 Mar 2024

still
when no curl
no luck
image

it's my faulty settings or ?

avatar SniperSister
SniperSister - comment - 11 Mar 2024

@alikon did you follow the test instructions above (abstract code block) or did you try to fetch a Joomla update? The later one is blocked by the changes in George's PR

avatar alikon
alikon - comment - 11 Mar 2024

i've applyed this pr on an already not working sceanrio as per #42973

avatar SniperSister
SniperSister - comment - 11 Mar 2024

In that case it won't work as the TUF updater is still pinned to the curl driver, that's being fixed in #42900

This PR is not specifically fixing the TUF issue but solving the issue generically that blocks TUF from using socket transports.

avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2024
Category Libraries External Library Composer Change Libraries
avatar SniperSister SniperSister - change - 11 Mar 2024
The description was changed
avatar SniperSister SniperSister - edited - 11 Mar 2024
avatar alikon
alikon - comment - 11 Mar 2024

so it could be tested after #42900 has been merged or with #42900

right ?

avatar LadySolveig LadySolveig - change - 11 Mar 2024
Labels Added: Composer Dependency Changed
avatar SniperSister
SniperSister - comment - 11 Mar 2024

... or without TUF by executing the code snippet mentioned in the test instructions :)

avatar alikon
alikon - comment - 11 Mar 2024

me quite confused #43004 ?

avatar SniperSister
SniperSister - comment - 11 Mar 2024

me quite confused #43004 ?

Totally different topic.

avatar LadySolveig LadySolveig - change - 11 Mar 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-11 20:32:55
Closed_By LadySolveig
avatar LadySolveig LadySolveig - close - 11 Mar 2024
avatar LadySolveig LadySolveig - merge - 11 Mar 2024
avatar LadySolveig
LadySolveig - comment - 11 Mar 2024

Thanks

Add a Comment

Login with GitHub to post a comment