NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs
----------------------------------------------------------------
Key: JCR-3112
URL: https://issues.apache.org/jira/browse/JCR-3112
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-spi-commons
Affects Versions: 2.3.1
Reporter: Kamil Nezval
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira