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

RepositoryChecker versioning cleanup may leave repaired node in invalid type state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.5, 2.6.5, 2.7.3
    • 2.7.4, 2.4.6, 2.6.6
    • jackrabbit-core
    • None

    Description

      When detaching a version history, the repair code removes the mix:versionable mixin. However, it leaves the jcr:uuid property alone. If the effective node type of the repaired node does not allow a jcr:uuid property, the node will be in an inconsistent state.

      The existing tests in AutoFixCorruptNode did not uncover this because they use the default node type, nt:unstructured, in which case jcr:uuid falls back to a residual property.

      The suggested fix (in addition to test inprovements) is to add the mix:referenceable mixin.

      Attachments

        1. JCR-3711.diff
          13 kB
          Julian Reschke

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: