[ 
https://issues.apache.org/jira/browse/SLING-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764323#action_12764323
 ] 

Felix Meschberger commented on SLING-1149:
------------------------------------------

I think we need not guard against NPE when checking the key -- or we could 
check the keyy for null and in fact knowingly throw:

    if (key == null) {
       throw NPE("key");
    } else ....

> JcrPropertyMap doesn't allow "./property" style access any more
> ---------------------------------------------------------------
>
>                 Key: SLING-1149
>                 URL: https://issues.apache.org/jira/browse/SLING-1149
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 2.0.6
>            Reporter: Alexander Klimetschek
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.8
>
>
> With the changes of SLING-1077 (also SLING-1103 and the partial "reverting" 
> of SLING-1112) it is no longer possible to access properties via 
> "./property". This works with the JCR API (as any relative path) and is 
> sometimes necessary to have full-roundtrippable code together with the Sling 
> POST servlet (that allows a "./" prefix on all properties to automatically 
> ignore any normal property).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to