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

Add entry on glossary WS is not admiting HTML on description field

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with a user enrolled.
      2. Create a glossary that user can add entries.
      3. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for the user
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user .
        • You need to replace the wstoken, glossaryid (the discussion you created id value) and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'glossaryid=6&concept=title&definition=%3Cp%3Etest%3C%2Fp%3E&definitionformat=1&moodlewssettingfilter=true&moodlewssettingfileurl=true&wsfunction=mod_glossary_add_entry&wstoken=e81c7692e00fdd8e884a47f7321eac09'

      6. Check there are no errors and entry has been added.
      Show
      Create a course with a user enrolled. Create a glossary that user can add entries. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the user Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user . You need to replace the wstoken, glossaryid (the discussion you created id value) and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'glossaryid=6&concept=title&definition=%3Cp%3Etest%3C%2Fp%3E&definitionformat=1&moodlewssettingfilter=true&moodlewssettingfileurl=true&wsfunction=mod_glossary_add_entry&wstoken=e81c7692e00fdd8e884a47f7321eac09' Check there are no errors and entry has been added.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-57737-master

      Description

      Now only accepts PARAM_TEXT and it should be changed to PARAM_RAW.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pferre22 Pau Ferrer
                Reporter:
                pferre22 Pau Ferrer
                Peer reviewer:
                Dani Palou
                Integrator:
                Dan Poltawski
                Tester:
                Jun Pataleta
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17