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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.1
    • 3.3.2
    • Administration
    • MOODLE_33_STABLE
    • MOODLE_33_STABLE
    • MDL-59741-master
    • 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)

    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

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Sep/17