In-Portal Issue Tracker - In-Portal CMS
|
Viewing Issue Advanced Details |
|
ID:
|
Category:
|
Type:
|
Reproducibility:
|
Date Submitted:
|
Last Update:
|
1283 |
[In-Portal CMS] Data Management |
bug report |
always |
2012-05-17 03:06 |
2012-07-25 05:30 |
|
Reporter:
|
alex |
Platform:
|
|
|
Assigned To:
|
alex |
OS:
|
|
|
Priority:
|
normal |
OS Version:
|
|
|
Status:
|
closed |
Product Version:
|
5.0.0 |
|
Product Build:
|
|
Resolution:
|
fixed |
|
|
ETA:
|
none |
Fixed in Version:
|
5.2.0-RC1 |
|
Reference:
|
https://groups.google.com/d/topic/in-portal-bugs/ffwULE4Hiz4/discussion |
Change Log Message:
|
Fixes incorrect curl response in case of safe_mode/open_basedir is enabled |
Estimate Points:
|
1 |
|
Summary:
|
0001283: Problems with using Curl follow location feature in safe_mode or when open_basedir is enabled |
Description:
|
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. |
Steps To Reproduce:
|
|
Additional Information:
|
|
Relationships | parent of | 0001338 | closed (5.2.0) | alex | Headers are returned along with response, when curl requests with followLocation option sent |
|
Attached Files:
|
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 |
Date Modified |
Username |
Field |
Change |
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 |