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

In webservice functions, with REST protocol, doesn't accept URLecoded character in value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.2.1
    • Web Services
    • Linux with pt_BR locale
    • MOODLE_22_STABLE
    • Hide

      Try to use other protocol, if possible

      Show
      Try to use other protocol, if possible
    • Hide

      in linux with curl

      curl -d "wstoken=XXXX&wsfunction=core_user_update_users&users%5B0%5D%5Bid%5D=USERID&&users%5B0%5D%5Bfirtsname%5D=Jos%E9%20Maria

      where XXXX is your token, ans USERID is the user id

      Show
      in linux with curl curl -d "wstoken=XXXX&wsfunction=core_user_update_users&users%5B0%5D%5Bid%5D=USERID&&users%5B0%5D%5Bfirtsname%5D=Jos%E9%20Maria where XXXX is your token, ans USERID is the user id

      In web services functions, with "REST" protocol , doesn't accept URLecoded characters in the value

      example:
      users[0][id]=2&users[0][firtsname]=José Maria

      in URLencode will be
      users%5B0%5D%5Bid%5D=2&users%5B0%5D%5Bfirtsname%5D=Jos%E9%20Maria

      The name part ( users%5B0%5D%5Bfirtsname%5D ) its ok, doesn't have any problem, but in the value part (Jos%E9%20Maria),it's returning an exception message, "Invalid parameter value detected"

      <EXCEPTION class="invalid_parameter_exception">
      <MESSAGE>Invalid parameter value detected</MESSAGE>
      <DEBUGINFO></DEBUGINFO>
      </EXCEPTION>

            jerome Jérôme Mouneyrac
            bozohrj Carlos Alexandre S. da Fonseca (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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