You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2014/09/23 12:07:33 UTC

[jira] [Created] (OAK-2121) Inconsistent protected property validation on mixin

Alex Parvulescu created OAK-2121:
------------------------------------

             Summary: 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


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)