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)

Reply via email to