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

XWiki Objects' number field values are not preserved in previous versions of a page in case of object deletion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.7
    • 1.7 RC1
    • {Unused} Core
    • None
    • patch
    • Unit

    Description

      When retrieving previous versions of a page, object's numbers are re-arranged if objects are deleted.
      For example, let's suppose I have the following history:

      Version X: Objects

      { C[0], C[1], C[2] }

      Version X+1: Objects

      { C[0], C[2] }
      Version X+2: Objects { C[0], C[2] }

      If I rollback to X+1 then object numbers are rearranged in the following way:

      Version X+3: Objects

      { C[0], C[1] }

      This is a big problem because object's id are implicitly changed and, thus, their identity is not traceable anymore.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            fmancinelli Fabio Mancinelli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: