xmlrpc client API doesn't use proxy settings

Bug #562699 reported by Ashley Holman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Hugh Davenport

Bug Description

in api/xmlrpc/client.php: function send():

this doesn't ever use proxy settings, hence was timing out for me because my web server MUST go through a proxy.

I was able to fix it by adding these lines:

        if($proxy_address = get_config('proxyaddress')) {
          curl_setopt($ch, CURLOPT_PROXY, $proxy_address);
        }

Thanks

Changed in mahara:
importance: Undecided → High
milestone: none → 1.3.0
status: New → Triaged
Revision history for this message
François Marier (fmarier) wrote :

We need to review every bit of code which uses curl.

I suppose we should write a curl wrapper so that developers don't have to remember to set the proxy stuff.

Changed in mahara:
assignee: nobody → François Marier (fmarier)
Changed in mahara:
assignee: François Marier (fmarier) → nobody
Revision history for this message
Nigel McNie (nigel-mcnie) wrote : Re: [Mahara-core] [Bug 562699] Re: xmlrpc client API doesn't use proxy settings

On 26 July 2010 18:36, François Marier <email address hidden> wrote:

> We need to review every bit of code which uses curl.
>

They should all be using mahara_http_request() iirc. I don't recall ever
converting the xmlrpc stuff to that though.

--
Regards,
Nigel McNie
http://nigel.mcnie.name/ | +64 27 469 6038 | http://twitter.com/nigelmcnie
My latest blog post:
http://nigel.mcnie.name/blog/howto-convert-from-it-geek-to-entrepreneur-part-5-getting-started

Changed in mahara:
milestone: 1.3.0 → none
Changed in mahara:
milestone: none → 1.4.0
Changed in mahara:
importance: High → Low
importance: Low → Medium
milestone: 1.4.0 → none
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
status: Triaged → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/431
Committed: http://gitorious.org/mahara/mahara/commit/9331c2291bdc6cbe0e5dd5dac1d60324794d57f9
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit 9331c2291bdc6cbe0e5dd5dac1d60324794d57f9
Author: Hugh Davenport <email address hidden>
Date: Mon Jul 4 16:13:13 2011 +1200

    Make xmlrpc client use mahara_http_request

    The xmlrpc client was still using curl directly. This patch
    converts this to use mahara_http_request instead.

    This fixes bug #562699

    Change-Id: I6f775275f193132031e334e456867cc137308c0e
    Signed-off-by: Hugh Davenport <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 1.5.0
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.