[AMOS commit] MDL-38509 Add ability to install add-ons from the remote repository Committed into Git: 2013-03-28 23:06 UTC

[AMOS commit] MDL-38509 Add ability to install add-ons from the remote repository Committed into Git: 2013-03-28 23:06 UTC

by AMOS bot -
Number of replies: 0
Author: David Mudrák
MDL-38509 Add ability to install add-ons from the remote repository
There is a new hook in the index.php file. If valid HTTP parameter
installaddonrequest is detected, the installer asks the administrator to
confirm the request.

If confirmed, the installer calls download.moodle.org/api/1.2/pluginfo.php
service to get information about the given plugin version. The essential
data are the URL of the ZIP to download and the MD5 hash of the ZIP.
These data must be fetched via HTTPS to protect against MiM attack.

If the ZIP is downloaded and the MD5 content hash is correct, the user
is redirected to the previously implemented ZIP validation page, as if
the ZIP was uploaded manually.

The valid format of the installaddonrequest is documented via the
test_decode_remote_request() unit test method.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=af96f120e9fa46f12f6acc67d763058265c95f71
http://github.com/moodle/moodle/commit/af96f120e9fa46f12f6acc67d763058265c95f71

+ 2.5 en [installexception,tool_installaddon]
+ 2.5 en [remoterequestalreadyinstalled,tool_installaddon]
+ 2.5 en [remoterequestconfirm,tool_installaddon]
+ 2.5 en [remoterequestinvalid,tool_installaddon]
+ 2.5 en [remoterequestpermcheck,tool_installaddon]
+ 2.5 en [remoterequestpluginfoexception,tool_installaddon]