-
Bug
-
Resolution: Unresolved
-
Low
-
None
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
|