Moodle
  1. Moodle
  2. MDL-31538

The webservice function core_user_update_user always returns an exception message

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.1
    • Fix Version/s: STABLE backlog
    • Component/s: Web Services
    • Labels:
    • Environment:
      Linux, with pt-BR locale
    • Database:
      Any
    • Testing Instructions:
      Hide

      in linux:
      curl -d "wstoken=XXX&wsfunction=core_user_update_users&users[0][id]=ID" http://localhost/moodle/webservice/rest/server.php

      where XXX is yours token number, and ID it's the user id

      Show
      in linux: curl -d "wstoken=XXX&wsfunction=core_user_update_users&users [0] [id] =ID" http://localhost/moodle/webservice/rest/server.php where XXX is yours token number, and ID it's the user id
    • Workaround:
      Hide

      Create a local web service with the correct returns function!

      Show
      Create a local web service with the correct returns function!
    • Affected Branches:
      MOODLE_22_STABLE
    • Rank:
      38091

      Description

      The webservice function "core_user_update_user" always returns an exception message because the return function (update_users_returns() in user/externallib.php) it's not return external_description, it's not following the external API

      I think that all web service functions that not need to return values has this error

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: