-
Bug
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
wip-
MDL-33749-master -
When adding a resource such as a file to a course, using the URL downloader in the File picker dialog fails when a website is entered that redirects the user.
Steps to reproduce:
1. Add a new File resource.
2. In the Content Section, click on "Add..."
3. In the file picker, select "URL downloader"
4. Type google.com in the URL box and click Download.
This is what comes up when following these steps:
HTTP/1.1 301 Moved Permanently Location: http://www.google.com/ Content-Type: text/html; charset=UTF-8 Date: Thu, 14 Jun 2012 18:23:40 GMT Expires: Sat, 14 Jul 2012 18:23:40 GMT Cache-Control: public, max-age=2592000 Server: gws Content-Length: 219 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN
Note that typing www.google.com into the URL box does work. Google automatically redirects users from http://google.com to http://www.google.com, which the URL downloader cannot handle.
- Discovered while testing
-
MDLQA-3913 Moodle 2.3 QA Cycle 2 Test Session 4
- Open
- has a non-specific relationship to
-
MDL-33955 Make download_file_content()/class curl to observe "moved" headers with open_basedir or safe_mode in effect
- Closed
- is a regression caused by
-
MDL-21170 Migrating to YUI3, filepicker, filemanager, comment and form
- Closed