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

Token WS is not returning errorcode on fatalerror

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.7, 3.1.3
    • 2.9.8, 3.0.6, 3.1.2, 3.2
    • Web Services
    • MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55951-master
    • 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.

      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

            pferre22 Pau Ferrer
            pferre22 Pau Ferrer
            Frédéric Massart Frédéric Massart
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.