Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9136

Rest API JSON does not retrieve inherited fields

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4.2, 6.0-milestone-1
    • 4.5.3, 5.0
    • REST
    • None
    • Easy
    • N/A
    • N/A

    Description

      The current implementation of the REST api with "media=json" fails to send all fields like the media=xml does. The missing fields are those that are inherited from a superclass.

      Example: for a page

      compare
      /xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/WebHome?media=json
      to
      /xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/WebHome?media=xml

      In the json output there is no title field.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: