Moodle

component_installer (file_get_contents) not proxy aware

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 1.8
  • Fix Version/s: 1.9
  • Component/s: Administration
  • Labels:
    None
  • Environment:
    WinXP SP2, XAMPP 1.60a
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Moodle 1.8 Beta + (2007021401)
When trying to use /admin/langimport.php, there happened nothing, first. Then I remembered adding our proxy, and now displaying the language selection boxes works fine. When selecting a language and clicking "<- Install selected language pack", nothing happens for a long time. With Debugging set to "DEVELOPER" I get the following output after 60 seconds of wait:

"
XML-Verarbeitungsfehler: Kein Element gefunden
Adresse: http://localhost/moodle/admin/langimport.php?mode=2
Zeile Nr. 258, Spalte 1:
^
"

Translated something like:
"
XML-processing error: no element found
address: http://localhost/moodle/admin/langimport.php?mode=2
line Nr. 258, column 1:
^
"

This error led me to the component_installer, and that seems to use "file_get_contents" to download the language-pack, but I was unable to find something like "proxy_url" in admin/langimport.php - I think the component_installer does not incorporate the proxy-rules.

Any comments if I did something wrong? Any fast workaround for installing a langpack locally? Thanks for this great program!

Issue Links

Activity

Hide
Christian Münscher added a comment -

To make it a little bit more clear: I was able to find a function "proxy_url" in admin/langimport.php, but I was unable to find something like that in the class where the component_installer is defined...

Show
Christian Münscher added a comment - To make it a little bit more clear: I was able to find a function "proxy_url" in admin/langimport.php, but I was unable to find something like that in the class where the component_installer is defined...
Hide
Petr Škoda (skodak) added a comment -

Hi!
This is a known issue. Sorry for the inconvenience. I hope it gets fully implemented in later 1.8.x release or 1.9.

skodak

Show
Petr Škoda (skodak) added a comment - Hi! This is a known issue. Sorry for the inconvenience. I hope it gets fully implemented in later 1.8.x release or 1.9. skodak
Hide
Christian Münscher added a comment -

Sorry, I was unable to find it on the tracker, thus the above ^^ bug report, but maybe I just used the wrong search phrases... thanks for taking care!

Show
Christian Münscher added a comment - Sorry, I was unable to find it on the tracker, thus the above ^^ bug report, but maybe I just used the wrong search phrases... thanks for taking care!
Hide
Dan Poltawski added a comment -

Hi this was fixed recently by MDL-11845, closing

Show
Dan Poltawski added a comment - Hi this was fixed recently by MDL-11845, closing

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: