-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.1] - Fix JHTTP socket transport http version #43002
[5.1] - Fix JHTTP socket transport http version #43002
Conversation
I have tested this item ✅ successfully on f54a18f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43002. |
@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 |
i've applyed this pr on an already not working sceanrio as per #42973 |
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. |
... or without TUF by executing the code snippet mentioned in the test instructions :) |
me quite confused #43004 ? |
Totally different topic. |
Thanks |
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
$http = \Joomla\CMS\Http\HttpFactory::getHttp([], 'socket'); $response = $http->get('https://update.joomla.org/cms/root.json');
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
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