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

Field set by a mandatory document initializer can be reseted when installing a XAR containing the same document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.10.10
    • Fix Version/s: 12.8, 12.6.3, 11.10.11
    • Component/s: Extension
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      That's because in that case EM does a merge with the standard initialized document as previous version, the database version as current and the version from the XAR (which might not contain the changes made by the initializer) as new version.

      The initializer should be applied on the new version before merging.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: