Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2966

Shared Node disappears after session is logged out

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            husbas Husain
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: