Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-7362

download.moodle.org requires HTTPS, but unittest/test_redir.php responds with HTTP

    XMLWordPrintable

Details

    Description

      The Moodle PHPUnit tests are failing when run in the default behavior (not the CI behavior) because download.moodle.org is redirecting from http to https.

      It's good that download.moodle.org is enforcing HTTPS, but the unittest/test_redir.php should be updated to respond with an HTTPS URL. Otherwise, it's doubling up the number of redirects:

       

      $ curl -v -L "http://download.moodle.org/unittest/test_redir.php?redir=4" 2>&1 | grep -i 'Location:'
      < Location: https://download.moodle.org/unittest/test_redir.php?redir=4
      < location: http://download.moodle.org:80/unittest/test_redir.php?redir=3
      < Location: https://download.moodle.org/unittest/test_redir.php?redir=3
      < location: http://download.moodle.org:80/unittest/test_redir.php?redir=2
      < Location: https://download.moodle.org/unittest/test_redir.php?redir=2
      < location: http://download.moodle.org:80/unittest/test_redir.php?redir=1
      < Location: https://download.moodle.org/unittest/test_redir.php?redir=1
      < location: http://download.moodle.org:80/unittest/test_redir.php?done=1
      < Location: https://download.moodle.org/unittest/test_redir.php?done=1
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jrchamp Jonathan Champ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.