You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2012/07/20 12:16:34 UTC
[jira] [Resolved] (SLING-2518) Exception thrown from
jcrPropertyMap.containsKey("")
[ https://issues.apache.org/jira/browse/SLING-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2518.
-------------------------------------
Resolution: Fixed
Exception is now swalled for the fallback case and prop names with colon at the beginning are handled properly now. Added a test
> 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