Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14530

Jackrabbit throws ConstraintViolationException when we try to restore the core version of a document from the version history

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 12.6.16, 14.6.0, 13.4.9
    • None
    • None
    • Pulsar
    • Pulsar 256 - SaaS Hardening

    Description

      If we create a project and add a document to that project when we try to restore the core version a ConstraintViolationException might be thrown.

      The issue happens because the first version stored in the version history (core version) doesn't contain the mixin branchInfo, and thus a failure in the Jackrabbit code that restores this version fails when processing the property branchName (which is defined in that mixin).

      This issue isn't happening often because most of our documents have the mixin hippostd:relaxed, which allows to have any property, but if we define a document without that mixin, we will face the issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eperez Eduardo Perez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: