Shared Node disappears after session is logged out
--------------------------------------------------

                 Key: JCR-2966
                 URL: https://issues.apache.org/jira/browse/JCR-2966
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-api, jackrabbit-core
         Environment: tomcat 7
Windows 7
JDK 1.6 
            Reporter: Husain


Following is the tree I created first:
-/root1
--/root1/a1
---/root1/a1/b1
----/root1/a1/b1/c1
--/root1/a2

Now I want to share the node b1 with a new node b2 such that I can access c1 as 
----/root1/a2/b2/c1

I did the above tree successfully all in one session and I was able to see the 
desired subtree as well as ----/root1/a2/b2 and ----/root1/a1/b1 in a shared 
set . However, When I logout and re -login into the session, the shared node 
----/root1/a2/b2 disappears and if I try to recreate the node I get following 
exception:
Exception in thread "main" javax.jcr.ItemExistsException: This node already 
exists: /root1/a2/b2
        at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1293)
        at 
org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:111)
        at 
org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:37)
        at 
org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
        at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
        at 
org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:1783)
        at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1743)
        at com.emaratech.jcr.sample.JCRService.createNode(JCRService.java:50)
        at com.emaratech.jcr.sample.JCRService.main(JCRService.java:176)

But traversing  root1 doesn't show me b2 and neither lets me delete it.

Can you please see this issue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to