From dev-return-34992-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed May 16 13:35:26 2012 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53946C29E for ; Wed, 16 May 2012 13:35:26 +0000 (UTC) Received: (qmail 58124 invoked by uid 500); 16 May 2012 13:35:26 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57909 invoked by uid 500); 16 May 2012 13:35:25 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 57901 invoked by uid 99); 16 May 2012 13:35:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 13:35:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 13:35:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4F7D870BD for ; Wed, 16 May 2012 13:35:02 +0000 (UTC) Date: Wed, 16 May 2012 13:35:02 +0000 (UTC) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1677518064.3957.1337175302327.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (JCR-3312) AbstractSession.getItem should deal with identifier paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Julian Reschke created JCR-3312: ----------------------------------- Summary: AbstractSession.getItem should deal with identifier paths Key: JCR-3312 URL: https://issues.apache.org/jira/browse/JCR-3312 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr-commons Reporter: Julian Reschke Assignee: Julian Reschke 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira