You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Alexander Klimetschek <ak...@day.com> on 2010/01/26 16:33:48 UTC
Re: [Jackrabbit 2.0, beta 6] Problem: adding a Mixin-type with
mandatory properties after setting properties leads to exception
2010/1/26 Martin Bürgi <ma...@idparc.ch>:
> 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
alexander.klimetschek@day.com