In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1283 [In-Portal CMS] Data Management bug report always 2012-05-17 03:06 2012-07-25 05:30
alex  
alex  
normal  
closed 5.0.0  
fixed  
 
none 5.2.0-RC1  
https://groups.google.com/d/topic/in-portal-bugs/ffwULE4Hiz4/discussion
Fixes incorrect curl response in case of safe_mode/open_basedir is enabled
1
0001283: Problems with using Curl follow location feature in safe_mode or when open_basedir is enabled
Curl is wonderful program, that allows to make requests to any other website via http and https protocols and get requested data.
These days, when CDN are very popular the url you're trying to reach will most likely redirect you to equivalent url, but located closer to you. This will allow to speedup download.


Usually curl can process such redirect automatically thanks to FOLLOW_LOCATION option, however due PHP limitations it can't do so, while either safe_mode or open_basedir options are set in php.ini.
Attached patch emulates FOLLOW_LOCATION behavior by following "Location:" header in received response, when curl isn't able to do it itself.
parent of 0001338closed  (5.2.0)alex Headers are returned along with response, when curl requests with followLocation option sent 
patch curl_and_follow_location_in_safe_mode.patch (3,711) 2012-05-17 03:06
http://tracker.in-portal.org/file_download.php?file_id=1656&type=bug
Issue History
2012-07-25 05:30 alex Note Added: 0004905
2012-07-25 05:30 alex Status resolved => closed
2012-07-06 09:32 alex Relationship added parent of 0001338
2012-05-17 03:09 alex Changeset attached 5.2.x r15337
2012-05-17 03:09 alex Note Added: 0004638
2012-05-17 03:09 alex Status reviewed and tested => resolved
2012-05-17 03:09 alex Fixed in Version => 5.2.0-RC1
2012-05-17 03:09 alex Resolution open => fixed
2012-05-17 03:09 alex Assigned To !COMMUNITY => alex
2012-05-17 03:08 alex Note Added: 0004637
2012-05-17 03:08 alex Status needs testing => reviewed and tested
2012-05-17 03:08 alex Assigned To => !COMMUNITY
2012-05-17 03:08 alex Developer => alex
2012-05-17 03:08 alex Status active => needs testing
2012-05-17 03:07 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/ffwULE4Hiz4/discussion
2012-05-17 03:06 alex New Issue
2012-05-17 03:06 alex File Added: curl_and_follow_location_in_safe_mode.patch
2012-05-17 03:06 alex Change Log Message => Fixes incorrect curl response in case of safe_mode/open_basedir is enabled
2012-05-17 03:06 alex Estimate Points => 1

Notes
(0004637)
alex   
2012-05-17 03:08   
Will test all together later.
(0004638)
alex   
2012-05-17 03:09   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001283: Problems with using Curl follow location feature in safe_mode or when open_basedir is enabled
(0004905)
alex   
2012-07-25 05:30   
Since 5.2.0/1.2.0 versions was released.