Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-59741

WS tool_mobile_get_public_config is failing on 3.3 sites using some auth plugins implementing identityproviders or mnet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Install and enable an auth plugin implemeting identity providers (loginpage_idp_list function) - for example mnet (moodle network)
      2. Execute the following curl command pointing to your local installation

        curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}]' | python -m "json.tool"

      3. And check that you receive in the curl response a identityproviders field including the information of the plugin you installed (the name, url and iconurl)
      Show
      Install and enable an auth plugin implemeting identity providers (loginpage_idp_list function) - for example mnet (moodle network) Execute the following curl command pointing to your local installation curl 'http://localhost/m/stable_master/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}] ' | python -m "json.tool" And check that you receive in the curl response a identityproviders field including the information of the plugin you installed (the name, url and iconurl)
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59741-master

      Description

      We got this errors in some cases:

      "identityproviders => Invalid response value detected: iconurl => Invalid response value detected: Scalar type expected, array or object received.\nError code: invalidresponse"

      We are still trying to figure out which 3rd party plugin is causing this, in any case, this needs fixing in the code.

      It seems to be just a bug in our function.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Sep/17