In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001283 [In-Portal CMS] Data Management bug report always 2012-05-17 03:06 2012-07-25 05:30
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0-RC1
Status closed Product Version 5.0.0 Target Version 5.2.0
Time EstimateNo estimate
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.
Additional Information
Tags No tags attached.
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
Attached Files patch file icon curl_and_follow_location_in_safe_mode.patch [^] (3,711 bytes) 2012-05-17 03:06 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0001338closed (5.2.0)alex Headers are returned along with response, when curl requests with followLocation option sent 

-  Notes
User avatar (0004637)
alex (manager)
2012-05-17 03:08

Will test all together later.
User avatar (0004638)
alex (manager)
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
User avatar (0004905)
alex (manager)
2012-07-25 05:30

Since 5.2.0/1.2.0 versions was released.

- Related Changesets
In-Portal CMS: 5.2.x r15337
Timestamp: 2012-05-17 03:09:00
Author: alex
Details ] Diff ]
Fixes 0001283: Problems with using Curl follow location feature in safe_mode or when open_basedir is enabled
mod - /in-portal/branches/5.2.x/core/units/helpers/curl_helper.php Diff ] File ]

- 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



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker