? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
26 Nov 2014

Curl needs the accepted encoding header set as curl option and not only as header.

Test instructions

Add the following code to the file administrator/components/com_content/content.php after line 17

$options = new JRegistry();
$http = new JHttp($options, new JHttpTransportCurl($options));
$content = $http->get(
        'https://p20-calendars.icloud.com/published/2/L-7oRelmRSvcRxR8H-6Ni8btBd-dfx0NEh2GgZVeW1PZC1w1qHaA6-IKpUwsQ85mERNvoVjhUIgdyNwSvLelkS9DCTLKr_nLY0ZrMRD3mt4', array('Accept-Encoding'=>'deflate'))->body;
echo $content;die;

When you have applied the patch then you will see some ics content. If not then you will see some gzip compressed headers.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar laoneo laoneo - open - 26 Nov 2014
avatar jissues-bot jissues-bot - change - 26 Nov 2014
Labels Added: ?
avatar laoneo laoneo - test_item - 26 Nov 2014 - Not tested
avatar brianteeman
brianteeman - comment - 26 Nov 2014

Please provide instructions how this can be tested

On 26 November 2014 at 11:35, laoneo notifications@github.com wrote:

Curl needs the accepted encoding header set as curl option and not only as

header.

You can merge this Pull Request by running

git pull https://github.com/laoneo/joomla-cms patch-4

Or view, comment on, or merge it at:

#5210
Commit Summary

  • Handle accepted encoding in curl correct

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#5210.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar laoneo laoneo - change - 26 Nov 2014
The description was changed
avatar laoneo laoneo - test_item - 26 Nov 2014 - Tested successfully
avatar brianteeman brianteeman - alter_testresult - 26 Nov 2014 - laoneo: Not tested
avatar brianteeman
brianteeman - comment - 26 Nov 2014

sorry but you cant test your own code. we assume you would never submit untested code


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

avatar Hackwar
Hackwar - comment - 3 Feb 2015

Please fix the codestyle issue that Travis is complaining about.

avatar laoneo
laoneo - comment - 3 Feb 2015

Where can I find out what for a code style is wrong? It is a three line change, so there is not much room to make a mistake.

avatar Hackwar
Hackwar - comment - 3 Feb 2015

click on the details link and select one of the testruns and then scroll to the bottom.

avatar laoneo
laoneo - comment - 3 Feb 2015

Done....

avatar roland-d
roland-d - comment - 6 Sep 2015

@laoneo I have tested this with the code

$options = new JRegistry();
$http = new JHttp($options, new JHttpTransportCurl($options));
$content = $http->get(
    'https://www.google.com/calendar/ical/en.dutch%23holiday%40group.v.calendar.google.com/public/basic.ics', array('Accept-Encoding'=>'deflate'))->body;
echo $content;die;

Without the patch I see the calendar content and with the patch I see the calendar content. So it seems the patch is not needed.


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

avatar roland-d roland-d - test_item - 6 Sep 2015 - Tested unsuccessfully
avatar laoneo
laoneo - comment - 7 Sep 2015

Google doesn't deliver gzip compressed content. But I created a test calendar on my private iCloud account which I published. I've updated the test instructions, you can ad the code now as it is without searching for an iCloud url. Thanks for your help.

avatar roland-d
roland-d - comment - 13 Sep 2015

@laoneo I have taken the updated code (fixed the url as it started with ihttps ;) ) and added it to the content.php file. Without or with the patch, I always see the calendar data. So I can't reproduce the issue.

avatar laoneo
laoneo - comment - 14 Sep 2015

@roland-d strange, perhaps some different server settings. Hopefully some others will be able to reproduce the issue. Thanks for your help so far.

avatar roland-d
roland-d - comment - 19 Sep 2015

I have tested this again on a Mac and now I am able to reproduce the issue. Gzipped data is shown before the patch and regular calendar data after applying the patch. Test is succesfull.


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

avatar roland-d roland-d - test_item - 19 Sep 2015 - Tested successfully
avatar brianteeman brianteeman - change - 30 Mar 2016
Category Libraries
avatar brianteeman
brianteeman - comment - 13 Apr 2016

@laoneo Unfortunately this cant be tested anymore because you have deleted your branch. Please resolve this or this will have to be closed.


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

avatar brianteeman brianteeman - change - 13 Apr 2016
Status Pending Information Required
avatar roland-d
roland-d - comment - 13 Apr 2016

@brianteeman It can be tested but it's a bit more cumbersome, you would have to change the file manually with the same changes as shown on the "Files changed" tab.

We can still merge it even though the branch is gone.

avatar brianteeman brianteeman - test_item - 13 Apr 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 13 Apr 2016

I have tested this item :white_check_mark: successfully on 5584223

I dont understand this or why we need it but I can confirm it does what it says as stated by @roland-d


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

avatar brianteeman brianteeman - change - 13 Apr 2016
Status Information Required Ready to Commit
avatar brianteeman
brianteeman - comment - 13 Apr 2016

With my test and Rolands I am setting this RTC and someone else can decide if this is needed or not


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

avatar joomla-cms-bot joomla-cms-bot - change - 13 Apr 2016
Labels Added: ?
avatar roland-d
roland-d - comment - 13 Apr 2016

As for me I don't see an issue having this option. It enables another cURL option to be configured when sending a request.

From the PHP manual:

CURLOPT_ENCODING The contents of the "Accept-Encoding: " header. This enables decoding of the response. Supported encodings are "identity", "deflate", and "gzip". If an empty string, "", is set, a header containing all supported encoding types is sent.

avatar laoneo
laoneo - comment - 13 Apr 2016

I can recreate the branch with the patch if needed.

avatar brianteeman
brianteeman - comment - 13 Apr 2016

I "think" that will make it easier to be merged - not sure - but no harm

On 13 April 2016 at 11:29, Allon Moritz notifications@github.com wrote:

I can recreate the branch with the patch if needed.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#5210 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar rdeutz rdeutz - change - 13 Apr 2016
Milestone
avatar rdeutz rdeutz - reference | 20bc8cb - 13 Apr 16
avatar rdeutz rdeutz - merge - 13 Apr 2016
avatar rdeutz rdeutz - close - 13 Apr 2016
avatar rdeutz rdeutz - change - 13 Apr 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-04-13 15:15:31
Closed_By rdeutz
avatar rdeutz rdeutz - close - 13 Apr 2016
avatar rdeutz rdeutz - merge - 13 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - close - 13 Apr 2016
avatar joomla-cms-bot joomla-cms-bot - change - 13 Apr 2016
Labels Removed: ?
avatar rdeutz rdeutz - change - 1 May 2016
Milestone
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone

Add a Comment

Login with GitHub to post a comment