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

REST API breaks if an object deletion causes objects to not be consecutively numbered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.4.1, 6.4.8
    • Component/s: REST
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      To reproduce:

      1. Add two objects of the same class to a page.
      2. Use the REST API to get a list of all objects of that class on that page. I created two AppWithinMinutes.String objects on Main.WebHome, so I went to http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/objects/AppWithinMinutes.String
      3. Delete the first object (object 0) from the page.
      4. Retry step 2.

      Expected result: An XML document that lists and describes the remaining object (object 1).

      Actual result: 500 Internal Server Error

      The same problem happens if you create three objects and then delete the one in the middle.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              alex.henrie Alex Henrie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

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