-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.x] Fix JHTTP socket transport http version #43001
[4.x] Fix JHTTP socket transport http version #43001
Conversation
I have tested this item ✅ successfully on 2668f90 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43001. |
The updated framework package is now included in this PR |
With php curl not enabled I dont get the infinite loop 👍 But I do get the tuf errror 0 No transport driver available.
|
@brianteeman the PR fixes the general issue in the driver and allows the TUF updater to work with non-curl transports; the actual change to the updater, that removes the pinning to curl, is still pending in #42900 - do you have these changes in your working copy too? |
No io do not because that PR is for j5 and this PR is for j4 |
Ok but the posted stacktrace mentions the TUFFetcher which isn't present in J4 either, so I'm not sure that the actual test setup is that you used to to get that trace? |
maybe ny branch is fubar. will rebuild it again and retest |
SORRY - I checked the wrong site. I applied the pr to one site and checked it on a different site |
I have tested this item ✅ successfully on cf3b95c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43001. |
@HLeithner Could you test again with the included dependency update. Thanks in advance. |
my test is still valid because I tested it with and without dependency update by accident.... |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43001. |
Thank you all! |
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.
Framework implications
Once tested, please also merge joomla-framework/http#54
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