[ 
https://issues.apache.org/jira/browse/OAK-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758867#comment-13758867
 ] 

Marcel Reutegger commented on OAK-1000:
---------------------------------------

Right. I was refering the XPath because it is specified to run against a 
virtual document view [0] of the repository where escaping is applied [1].

[0] http://www.day.com/specs/jcr/1.0/6.6.1_XPath_over_Document_View.html
[1] http://www.day.com/specs/jcr/2.0/7_Export.html#7.4%20Escaping%20of%20Names

For JCR SQL that's not the case.
                
> Queries on node name fail if the name starts with a number
> ----------------------------------------------------------
>
>                 Key: OAK-1000
>                 URL: https://issues.apache.org/jira/browse/OAK-1000
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>            Reporter: Alex Parvulescu
>            Assignee: Thomas Mueller
>
> The _NodeNameImpl_ encodes the node name when used in a query via the 
> _ISO9075.encode_ method. [0]
> The problem appears when a node name starts with a number: the encode will 
> turn _123456_ into __x0031_23456_ thus failing the node name match.
> [0] 
> http://svn.us.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/NodeNameImpl.java?view=markup#l80

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to