2010/1/26 Martin Bürgi <[email protected]>: > Hello > > Jackrabbit throws an exception for every mandatory property, which was set > before the addMixin. > > My nodetype definition: > > [nt:foo] > mixin > - bar(string) mandatory > > > *this throws the exception "mandatory property {}bar does not exist"* > Node node = session.getRootNode().addNode("test"); > node.setProperty("bar", "test"); > node.addMixin("nt:foo"); > node.getSession().save(); > > *and this works at least with alpha 4 and before: > *Node node = session.getRootNode().addNode("test"); > node.addMixin("nt:foo"); > node.setProperty("bar", "test"); > node.getSession().save();
Looks like a bug. Could you file a JIRA issue with the above description? http://wiki.apache.org/jackrabbit/QuestionsAndAnswers#Reporting_Problems Thanks! Alex -- Alexander Klimetschek [email protected]
