? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
15 Dec 2016

This PR tries to improve the header/body separation for cURL response objects.
Since the header count can vary (redirects, proxy, ...) there is currently code which takes into acounts possible redirects. However that fails if there are additional headers due to other enviroment (eg a proxy).

When I tried to fix it in my case I found that there is a header_size already present in the cURL info.

Summary of Changes

This PR changes the way the header is determined by using the cURL info "header_size". If that for some reason isn't present it falls back to the old way. I honestly doon't know if that info is always available or not, so I just kept the fallback case.

Testing Instructions

The simplest way to test this is probably searching for updates in the Extension manager. If you don't see an error message that the update server wasn't responding or the XML couldn't be parsed or similar, then it should be fine.
If you actually see any updates, then it means it works for sure.

Documentation Changes Required

None

avatar Bakual Bakual - open - 15 Dec 2016
avatar Bakual Bakual - change - 15 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Dec 2016
Category Libraries
avatar Bakual Bakual - change - 22 Dec 2016
Title
Read header_size to determine header size
Read cURL header_size to determine header size
avatar Bakual Bakual - edited - 22 Dec 2016
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Jan 2017

I have tested this item successfully on 9fe92e0


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 14 Jan 2017 - Tested successfully
avatar gunthelm2000
gunthelm2000 - comment - 5 Feb 2017

I have tested this item successfully on 9fe92e0

I have testet it with JCE


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

avatar gunthelm2000 gunthelm2000 - test_item - 5 Feb 2017 - Tested successfully
avatar gunthelm2000
gunthelm2000 - comment - 5 Feb 2017

testet on #JC17DE


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

avatar zero-24 zero-24 - change - 5 Feb 2017
Milestone Added:
Status Pending Ready to Commit
Labels Added: ?
avatar wilsonge wilsonge - change - 5 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-05 22:38:22
Closed_By wilsonge
Labels
avatar wilsonge wilsonge - close - 5 Feb 2017
avatar wilsonge wilsonge - merge - 5 Feb 2017
avatar wilsonge
wilsonge - comment - 5 Feb 2017

@Bakual can you please port this into the framework so that it's carried forward into the 4.0 branch please

avatar Bakual
Bakual - comment - 6 Feb 2017

Add a Comment

Login with GitHub to post a comment