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

AbstractSession.getItem should deal with identifier paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • jackrabbit-jcr-commons
    • None

    Description

      In OAK's SessionImpl, we currently do:

      @Override
      public Item getItem(String absPath) throws PathNotFoundException, RepositoryException {
      if (absPath.startsWith("[") && absPath.endsWith("]"))

      { // TODO OAK-23 - maybe this code should be added in AbstractSession return getNodeByIdentifier(absPath.substring(1, absPath.length() - 1)); }

      else

      { return super.getItem(absPath); }

      }

      AbstractSession could do this on it's own.

      Attachments

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: