-
Bug
-
Resolution: Fixed
-
Minor
-
3.1.5, 3.2.2
-
Windows and IIS
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
The tool_mobile_get_plugins_supporting_mobile does not seem to generate urls to remote Moodle Mobile plugins correctly when Moodle is running on IIS under Windows
For example I get the following response:
{"exception":"invalid_response_exception","errorcode":"invalidresponse","message":"Invalid response value detected","debuginfo":"plugins => Invalid response value detected: fileurl => Invalid response value detected: Invalid external api response: the value is \"http:\/\/localhost\/moodle32\/mod\/tutorialbooking\\mobile\\mod_tutorialbooking.zip\", the server was expecting \"url\" type"} |
Steps to reproduce
Assumptions
- You have Moodle installed on IIS
- You have a plugin installed that includes a remote Moodle mobile addon
- You have a token for the webservice
Steps
- Call the webservice: <path_to_moodle>/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=tool_mobile_get_plugins_supporting_mobile&wstoken=<your_token>
Result
You will see an exception similar to the above, rather than the correct response detailing plugins.
This means that remote Mobile plugins will not load for the site.