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 "angela (JIRA)" <ji...@apache.org> on 2015/02/16 17:35:11 UTC

[jira] [Commented] (OAK-2225) MultipleMoveTest doesn't restore ACEs properly causing later tests to fail

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

angela commented on OAK-2225:
-----------------------------

[~mduerig], you commented out the 3 test-cases that are already excluded in the pom.xml (<known.issues>)... can you elaborate what was the reason for that?

> MultipleMoveTest doesn't restore ACEs properly causing later tests to fail
> --------------------------------------------------------------------------
>
>                 Key: OAK-2225
>                 URL: https://issues.apache.org/jira/browse/OAK-2225
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>         Environment: http://ci.apache.org/builders/oak-trunk
>            Reporter: Michael Dürig
>            Assignee: angela
>
> {{MultipleMoveTest}} uses {{AbstractEvaluationTest#allow()}} on {{/testroot}}. However during tear-down the ACEs on that node aren't property restored as {{AbstractEvaluationTest#restoreAces}} acts on {{/testroot/node1}} instead of {{testroot}}. This causes later tests to fail:
> {code}
> testRename(org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest)  Time elapsed: 0.291 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<[a]> but was:<[rep:policy]>
> 	at junit.framework.Assert.assertEquals(Assert.java:85)
> 	at junit.framework.Assert.assertEquals(Assert.java:91)
> 	at org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest.testRename(JackrabbitNodeTest.java:74)
> {code}
> and 
> {code}
> testRenameEventHandling(org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest)  Time elapsed: 0.073 sec  <<< ERROR!
> javax.jcr.nodetype.ConstraintViolationException: Item is protected.
> 	at org.apache.jackrabbit.oak.jcr.session.ItemImpl$ItemWriteOperation.checkPreconditions(ItemImpl.java:99)
> 	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:233)
> 	at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:113)
> 	at org.apache.jackrabbit.oak.jcr.session.NodeImpl.rename(NodeImpl.java:1426)
> 	at org.apache.jackrabbit.oak.jcr.JackrabbitNodeTest.testRenameEventHandling(JackrabbitNodeTest.java:124)
> {code}
> See http://ci.apache.org/builders/oak-trunk/builds/664



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)