jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Edelson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-2680) Cannot move a first-level node
Date Fri, 16 Jul 2010 20:53:54 GMT

     [ https://issues.apache.org/jira/browse/JCR-2680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Edelson updated JCR-2680:
--------------------------------

    Attachment: JCR-2680.patch

here's a patch, which I think should work

> Cannot move a first-level node
> ------------------------------
>
>                 Key: JCR-2680
>                 URL: https://issues.apache.org/jira/browse/JCR-2680
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Justin Edelson
>         Attachments: JCR-2680.patch, MoveAtRootTest.java
>
>
> Given /nodeA,
> session.move("/nodeA", "/nodeB")
> throws this exception:
> javax.jcr.PathNotFoundException: no ancestor at degree 1: {}
> 	at org.apache.jackrabbit.spi.commons.name.PathFactoryImpl$PathImpl.getAncestor(PathFactoryImpl.java:481)
> 	at org.apache.jackrabbit.core.retention.RetentionRegistryImpl.hasEffectiveRetention(RetentionRegistryImpl.java:291)
> 	at org.apache.jackrabbit.core.ItemValidator.hasRetention(ItemValidator.java:426)
> 	at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:328)
> 	at org.apache.jackrabbit.core.ItemValidator.checkRemove(ItemValidator.java:281)
> 	at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:1075)
> 	at org.apache.jackrabbit.core.MoveAtRootTest.testMoveAtRoot(MoveAtRootTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at org.apache.jackrabbit.test.AbstractJCRTest.run(AbstractJCRTest.java:456)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

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


Mime
View raw message