[
https://issues.apache.org/jira/browse/JCR-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787478#action_12787478
]
Alexandre Capt commented on JCR-2408:
-------------------------------------
Considering the fact that for a nt:unstructured node, the mixin properties are
not removed when removing the mixin (because they are accepted by the remaining
nodetype), I decided to change my code to remove the properties in all the
cases.
Depending on what has been said before, this should work on nt:unstructured and
nt:resoure nodetypes: 1) remove mixin properties 2) remove mixin 3) save.
But it does NOT. I get the same exception, except that it complains about the
second property of the mixin: javax.jcr.nodetype.ConstraintViolationException:
no matching property definition found for
{http://www.day.com/jcr/cq/1.0}lastRolledoutBy
Code executed:
targetNode.getProperty("lastRolledout").remove();
targetNode.getProperty("lastRolledoutBy").remove();
targetNode.removeMixin("cq:LiveRelationship");
Exception is thrown on session.save();
> 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
> Attachments: JCR-2408.patch
>
>
> 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.