Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1783

Property Constraint not checked if property already existed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.2.Final, 3.2.0.Final
    • 3.1.1.Final
    • JCR
    • None

    Description

      Property constraints are not checked every time Node.setProperty is called. It seems that it is only checked if the property did not exist already.

      This leads to nodes that violate property constraints being persisted. But when the property is retrieved at a later point, it then throws ConstraintViolationException.

      Attachments

        1. ConstraintTest.java
          3 kB
        2. test.cnd
          0.2 kB

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            herculeszeus_jira Hercules Zeus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: