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

REST server doesn't validate result when returning XML format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide

      In master:
      Cherry-pick MDL-37355

      1- Edit any external functions to return an object. I personally used user/externallib.php:create_users(). i edited it to return user objects with id/username instead of arrays with id/username.
      2- run the PHP-REST client (https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST).

      You should see the resulting XML code with the new user id/username.

      In 2.4/2.3:
      As you can not cherry-pick MDL-37355 for 2.3, the same test will fail. Just also confirm that without your code changes it works.

      Show
      In master: Cherry-pick MDL-37355 1- Edit any external functions to return an object. I personally used user/externallib.php:create_users(). i edited it to return user objects with id/username instead of arrays with id/username. 2- run the PHP-REST client ( https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST ). You should see the resulting XML code with the new user id/username. In 2.4/2.3: As you can not cherry-pick MDL-37355 for 2.3, the same test will fail. Just also confirm that without your code changes it works.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-37358-master

      Description

      REST server doesn't validate result when returning XML format

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              jerome Jérôme Mouneyrac
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Dan Poltawski
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Mar/13