Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4680

ConstraintViolationException in VersionManagerImplRestore when target node has a property definition unknown by the frozen node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.20.2
    • 2.22, 2.21.6, 2.20.4, 2.16.9
    • versioning
    • None

    Description

      If we attempt to restore a frozen node from the version history, but the target node has new property definitions (mixins), we get a ConstraintViolationException because the properties of the new node are processed after replacing its mixins with the mixins from the frozen node.

      Attachments

        1. JCR-4680-test.diff
          5 kB
          Julian Reschke
        2. VersionManagerImplRestore.patch
          3 kB
          Eduardo Perez Garcia

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eperez Eduardo Perez Garcia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: