[ 
https://issues.apache.org/jira/browse/JCR-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782428#action_12782428
 ] 

Alexander Klimetschek commented on JCR-2408:
--------------------------------------------

Is this about (a) throwing the exception immediately or upon save() or that (b) 
previously, Jackrabbit automatically removed all properties defined by a mixin 
upon removeMixin()? Sorry if I closed the issue prematurely, but the bug 
description misses vital information in that case.

(a) is left open by the 1.0 spec, while the 2.0 spec is unclear about that in 
the javadocs to removeMixin(). It states first that validation should happen on 
persist, but later it notes that implementations are free to throw the 
ConstraintViolationException immediately or on save().
(b) if true, is not defined by the spec (at least I couldn't find it) and that 
feature was unknown to me. But I agree that is very useful. => should probably 
documented then

> Mixin removal exception
> -----------------------
>
>                 Key: JCR-2408
>                 URL: https://issues.apache.org/jira/browse/JCR-2408
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.0-beta1
>            Reporter: Alexandre Capt
>
> When trying to remove a mixin from a non nt:unstructured node (in my case 
> nt:resource), you get the following exception:
> Unable to alter mixin types: javax.jcr.nodetype.ConstraintViolationException: 
> no matching property definition found for 
> {http://www.day.com/jcr/cq/1.0}lastRolledout
> lastRolledout property is defined by the mixin cq:LiveRelationship that I am 
> trying to remove.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to