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

DavResourceImpl.getParentElements() causes ItemNotFoundException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-jcr-server
    • Labels:
      None

      Description

      When requesting the root node the method DavResourceImpl.getParentElements() causes an ItemNotFoundException because the root node does not have a parent:

      05.12.2008 12:11:44 *WARN * DavResourceImpl: unable to calculate parent set (DavResourceImpl.java, line 955)
      javax.jcr.ItemNotFoundException: root node doesn't have a parent
      at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:2078)
      at org.apache.jackrabbit.webdav.simple.DavResourceImpl.getParentElements(DavResourceImpl.java:949)
      at org.apache.jackrabbit.webdav.simple.DavResourceImpl.initProperties(DavResourceImpl.java:393)
      at org.apache.jackrabbit.webdav.simple.DeltaVResourceImpl.initProperties(DeltaVResourceImpl.java:248)
      at org.apache.jackrabbit.webdav.simple.VersionControlledResourceImpl.initProperties(VersionControlledResourceImpl.java:320)
      [...]

      Only a WARN message is logged, the simple WebDAV server is still able to generate a valid response.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: