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

NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.9, 2.3.1
    • 2.2.10, 2.3.2
    • jackrabbit-spi-commons
    • None

    Description

      Two bugs have been found in NodeTypeDefDiff.PropDefDiff.init() when try to modify property constraints of an already registered node type:

      1) according to the java doc it should be possible to remove all constraints from a property, but it is not (marked as a MAJOR change).

      2) it's allowed (TRIVIAL) to set a constraint to a property that had no constraint at all before, which is wrong, because it could affect the consistency of existing repository content.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nezvalk Kamil Nezval
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: