[ 
https://issues.apache.org/jira/browse/OAK-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14164951#comment-14164951
 ] 

Alex Parvulescu commented on OAK-2121:
--------------------------------------

[~mduerig] why was this closed as 'Not a problem'?

> Inconsistent protected property validation on mixin
> ---------------------------------------------------
>
>                 Key: OAK-2121
>                 URL: https://issues.apache.org/jira/browse/OAK-2121
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Alex Parvulescu
>            Assignee: Michael Dürig
>         Attachments: NodeTypeTest.java.patch
>
>
> I ran into an inconsistent validation of the node's properties depending on 
> where the mixin is set:
> this correctly fails on the #setProperty method
> {code}
> n.addMixin(JcrConstants.MIX_REFERENCEABLE); 
> n.setProperty("jcr:uuid", UUID.randomUUID().toString());
> session.save();
> {code}
> this works:
> {code}
> n.setProperty("jcr:uuid", UUID.randomUUID().toString());
> n.addMixin(JcrConstants.MIX_REFERENCEABLE); 
> session.save();
> {code}
> Shouldn't the check still happen on save in the second case?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to