Node.removeMixin() should not remove valid items
------------------------------------------------
Key: JCR-2130
URL: https://issues.apache.org/jira/browse/JCR-2130
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-core
Affects Versions: 1.5.5, 1.5.4, core 1.4.9, 1.5.3, core 1.4.8, 1.5.2, core
1.4.7, 1.5.0, core 1.4.6, core 1.4.5, core 1.4.4, core 1.4.3, core 1.4.2, core
1.4.1, 1.4, 1.3.4, 1.3.3, 1.3.1, 1.3, 1.2.3, 1.2.2, 1.2.1, 1.1.1, 1.1, 1.0.1,
1.0, 0.9
Reporter: Tobias Bocanegra
assume you define a mixin like:
[test] mix
- aprop (string)
+ anode (nt:base)
and you add this mixin to a nt:unstructured and add 'anode' and set 'aprop'.
then a subsequent node.removeMixin("test") will also remove 'anode' and 'aprop'
although they are valid by the definition of nt:unstructured.
imo, the items should only be removed if they become invalid by the definition
of the resulting effective node type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.