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

Rest API JSON does not retrieve inherited fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.3, 5.0
    • Fix Version/s: 5.4.2, 6.0-milestone-1
    • Component/s: REST
    • Labels:
      None
    • Difficulty:
      Easy
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: