Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42985

The curl rule proxybypass is never applied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6.1
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. Save the example from the description in a test.php page
        • You must use your .moodle.local address
      2. Set up a fake proxy host in your Moodle settings
      3. Do not set your .moodle.local host in the proxybypass setting
      4. Make sure the curl request returns an error
      5. Add your .moodle.local to proxybypass
      6. Make sure the curl request works fine
      Show
      Save the example from the description in a test.php page You must use your .moodle.local address Set up a fake proxy host in your Moodle settings Do not set your .moodle.local host in the proxybypass setting Make sure the curl request returns an error Add your .moodle.local to proxybypass Make sure the curl request works fine
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-42985-master

      Description

      While working on MDL-42951, I realised that the setting proxybypass was not observed.

      Set Moodle to use a fake proxy server, and add your .moodle.local address to the proxybypass. The request below should work.

      require_once($CFG->dirroot . '/lib/filelib.php');
      $curl = new curl(array('debug' => true));
      $curl->post('http://fred.moodle.local/im/test.php');
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Petr Skoda
              Integrator:
              Damyon Wiese
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Jan/14