Curl followlocation option fails with some php settings

Bug #909168 reported by Richard Mansfield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Richard Mansfield

Bug Description

See http://mahara.org/interaction/forum/topic.php?id=3514#post18892

Setting the CURLOPT_FOLLOWLOCATION option sometimes fails - maybe due to an open_basedir setting. We should find out what causes the failure, and test in mahara_http_request before attempting to set it. We'll also need to add a check in site_warnings(), and a message on the admin homepage explaining what might be broken when we can't use CURLOPT_FOLLOWLOCATION.

Changed in mahara:
assignee: nobody → Richard Mansfield (richard-mansfield)
Changed in mahara:
status: Triaged → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/969
Committed: http://gitorious.org/mahara/mahara/commit/cdc39e43447c3a5f9ae0e8e21782ea2adf8b9aa6
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit cdc39e43447c3a5f9ae0e8e21782ea2adf8b9aa6
Author: Richard Mansfield <email address hidden>
Date: Thu Jan 5 16:42:43 2012 +1300

    When open_basedir is set, don't set CURLOPT_FOLLOWLOCATION (bug #909168)

    Trying to set this option fails when an open_basedir restriction is in
    effect. This patch also checks open_basedir and adds a warning to the
    admin area, and in the sanity check for an unwritable dataroot, the
    open_basedir directories are listed on the screen as a hint for
    installation.

    Change-Id: Ic394517f436955b038f321b06011b818d4967026
    Signed-off-by: Richard Mansfield <email address hidden>

Revision history for this message
François Marier (fmarier) wrote :
Changed in mahara:
status: In Progress → Fix Committed
Melissa Draper (melissa)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.