Return-Path: X-Original-To: apmail-sling-dev-archive@www.apache.org Delivered-To: apmail-sling-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 72637DB1B for ; Mon, 25 Jun 2012 16:08:45 +0000 (UTC) Received: (qmail 17531 invoked by uid 500); 25 Jun 2012 16:08:45 -0000 Delivered-To: apmail-sling-dev-archive@sling.apache.org Received: (qmail 17342 invoked by uid 500); 25 Jun 2012 16:08:45 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 17315 invoked by uid 99); 25 Jun 2012 16:08:45 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 16:08:45 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2B17D142852 for ; Mon, 25 Jun 2012 16:08:44 +0000 (UTC) Date: Mon, 25 Jun 2012 16:08:44 +0000 (UTC) From: "Antonio Sanso (JIRA)" To: dev@sling.apache.org Message-ID: <2075546481.51413.1340640524178.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1888487912.48872.1340550342721.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (SLING-2518) Exception thrown from jcrPropertyMap.containsKey("") MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SLING-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400568#comment-13400568 ] Antonio Sanso commented on SLING-2518: -------------------------------------- theoretically any that used to be like this } catch (RepositoryException re) { // TODO: log !! } and now is } catch (final RepositoryException re) { throw new IllegalArgumentException(re); } in the read method. > Exception thrown from jcrPropertyMap.containsKey("") > ---------------------------------------------------- > > Key: SLING-2518 > URL: https://issues.apache.org/jira/browse/SLING-2518 > Project: Sling > Issue Type: Bug > Components: JCR > Affects Versions: JCR Resource 2.1.0 > Reporter: Antonio Sanso > Assignee: Carsten Ziegeler > Fix For: JCR Resource 2.1.2 > > Attachments: SLING-2518-test.txt > > > There is a little regression updating org.apache.sling.jcr.resource from version 2.0.10 to version 2.1 > The same call to the JcrPropertyMap#containsKey that used to work in the former version fails in the latest with stacktrace > java.lang.IllegalArgumentException: javax.jcr.RepositoryException: failed to resolve path relative to node /test1340468918488 > at org.apache.sling.jcr.resource.JcrPropertyMap.read(JcrPropertyMap.java:355) > at org.apache.sling.jcr.resource.JcrPropertyMap.get(JcrPropertyMap.java:162) > at org.apache.sling.jcr.resource.JcrPropertyMap.containsKey(JcrPropertyMap.java:171) > at org.apache.sling.jcr.resource.internal.JcrPropertyMapTest.testDefaultValue(JcrPropertyMapTest.java:206) > at org.apache.sling.jcr.resource.internal.JcrPropertyMapTest.testDefaultValue(JcrPropertyMapTest.java:134) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > if containsKey empty string argument e.g. jcrPropertyMap.containsKey(""). > Up to version 2.0.10 jcrPropertyMap.containsKey("") returned false. > See also [0] > [0] sling.markmail.org/message/y4bcxpsreyzt4bwd -- 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