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

Julian Reschke commented on JCR-4680:
-------------------------------------

FWIW, Oak fails with:

{noformat}
[ERROR] 
testRestoreRemovesMixin(org.apache.jackrabbit.test.api.version.RestoreTest)  
Time elapsed: 0.209 s  <<< ERROR!
javax.jcr.RepositoryException: 
org.apache.jackrabbit.oak.api.CommitFailedException: OakVersion0000: Unexpected 
RepositoryException
        at 
org.apache.jackrabbit.test.api.version.RestoreTest.testRestoreRemovesMixin(RestoreTest.java:1486)
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakVersion0000: 
Unexpected RepositoryException
        at 
org.apache.jackrabbit.test.api.version.RestoreTest.testRestoreRemovesMixin(RestoreTest.java:1486)
Caused by: javax.jcr.nodetype.ConstraintViolationException: No matching 
property definition found for jcr:title
        at 
org.apache.jackrabbit.test.api.version.RestoreTest.testRestoreRemovesMixin(RestoreTest.java:1486)
{noformat}


> ConstraintViolationException in VersionManagerImplRestore when target node 
> has a property definition unknown by the frozen node
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-4680
>                 URL: https://issues.apache.org/jira/browse/JCR-4680
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: versioning
>    Affects Versions: 2.20.2
>            Reporter: Eduardo Perez Garcia
>            Priority: Major
>         Attachments: JCR-4680-test.diff, VersionManagerImplRestore.patch
>
>
> If we attempt to restore a frozen node from the version history, but the 
> target node has new property definitions (mixins), we get a 
> ConstraintViolationException because the properties of the new node are 
> processed after replacing its mixins with the mixins from the frozen node.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to