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

Token WS is not returning errorcode on fatalerror

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.8, 3.0.6, 3.1.2, 3.2
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a user with username test and password test and force its password change.
        Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the username and password if changed.

          curl 'http://localhost/m/stable_master/login/token.php' --data 'username=test&password=test&service=moodle_mobile_app' --compressed

      2. Check errorcode is present in the json response.
      Show
      Create a user with username test and password test and force its password change. Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the username and password if changed. curl 'http://localhost/m/stable_master/login/token.php' --data 'username=test&password=test&service=moodle_mobile_app' --compressed Check errorcode is present in the json response.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-55951-master

      Description

      We need to add errorcode on fatal_error raise when for ajax renderer in order to get a raw error when user logins from the app.

      This is similar to MDL-32949

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Nov/16