Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.4
-
None
-
None
Description
using jackrabbit 2.4 (the remoting with davex, not tested with others) i can set the property jcr:mixinTypes to a node without getting an exception. before saving, the property is there but isNodeType returns false. when i save and read the node in a new session, it loses the property completely. if i set the mixin with addMixin, i can get it as property afterwards.
i am a bit confused by this. i guess it makes sense to not allow setting the mixin with setProperty - but then this should throw some exception to tell me i am wrong.
Node root = s.getRootNode();
Node node = root.getNode("my_node");
node.setProperty("jcr:mixinTypes", "mix:referenceable");
System.out.println(node.getProperty("jcr:mixinTypes").getString()); // mix:referenceable
System.out.println(node.isNodeType("mix:referenceable")); // false
s.save();
// neither a normal property nor a mixin type is stored