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

moodle_user_get_users_by_id() service returns error when user has HTML description set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Web Services
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The moodle_user_get_users_by_id() function throws an exception and returns a SOAP Fault if any of the users have HTML in their "description" field.

      This is because the description field is defined as type PARAM_TEXT.

      My patch changes this to PARAM_RAW to allow the HTML to be returned.

      This is similar to the course "summary" field which is defined as PARAM_RAW in get_courses_returns().

        Attachments

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            ashleyholman Ashley Holman
            Tester:
            Nobody
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10