You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Satya Deep Maheshwari (JIRA)" <ji...@apache.org> on 2017/11/10 10:12:00 UTC

[jira] [Updated] (SLING-7237) JcrValueMap escapes legal ':' character in namespace

     [ https://issues.apache.org/jira/browse/SLING-7237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Satya Deep Maheshwari updated SLING-7237:
-----------------------------------------
    Description: 
See [1] wherein while reading a jcr property, 
the name is escaped of illegal jcr character ':' . For e.g. if I say 
{{valueMap.get("jcr:content/xyz")}} then it is escaped as {{jcr%3Acontent/xyz}} . This is not correct if I have a namespace by the name "jcr" registered already because then {{jcr:content/xyz}} is a valid property path.


[1] - https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java#L482

  was:
See [1] wherein while reading a jcr property, 
the name is escaped of illegal jcr character ':' . For e.g. if I say 
{{valueMap.get("jcr:content/xyz")}} then it is escaped as {{jcr%3Acontent/xyz}} . This is not correct if I have a namespace by the name "jcr" registered already because then {{jcr:content/xyz}} is a valid property name.


[1] - https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java#L482


> JcrValueMap escapes legal ':' character in namespace
> ----------------------------------------------------
>
>                 Key: SLING-7237
>                 URL: https://issues.apache.org/jira/browse/SLING-7237
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 3.0.6
>            Reporter: Satya Deep Maheshwari
>
> See [1] wherein while reading a jcr property, 
> the name is escaped of illegal jcr character ':' . For e.g. if I say 
> {{valueMap.get("jcr:content/xyz")}} then it is escaped as {{jcr%3Acontent/xyz}} . This is not correct if I have a namespace by the name "jcr" registered already because then {{jcr:content/xyz}} is a valid property path.
> [1] - https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/util/Text.java#L482



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)