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

Rollback does not work with object properties that did not exist in the old version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 6.4.1
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Create a class: Sandbox.MyClass
      2. Add a property called "p1" (string)
      3. Save the class
      4. Create a page Sandbox.Test
      5. Add an object of the class Sandbox.MyClass on it
      6. Set a value to p1
      7. Save the document
      8. Go back to Sandbox.MyClass, add a property "p2" (a string) and save
      9. Go back to Sandbox.Test, add a value to the property "p2" and save
      10. Look at the history and rollback to the first version of Sandbox.Test
      11. Go on edit object mode, and see: the property "p2" is still there with the value you set, even if in the version 1.1, the property did not exist.

      Cause: Since "p2" did not exists in the version 1.1, the rollback action does not handle it.

      It causes: XWIKI-11787.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              gdelhumeau Guillaume Delhumeau
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: