You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2016/04/08 16:03:25 UTC

[jira] [Commented] (SLING-5654) Use apostrophe to escape paths in ISDESCENDANTNODE

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

Tomek Rękawek commented on SLING-5654:
--------------------------------------

Fixed in [r1738246|svn.apache.org/r1738246].

> Use apostrophe to escape paths in ISDESCENDANTNODE
> --------------------------------------------------
>
>                 Key: SLING-5654
>                 URL: https://issues.apache.org/jira/browse/SLING-5654
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Query
>            Reporter: Tomek Rękawek
>            Assignee: Tomek Rękawek
>            Priority: Minor
>             Fix For: Sling Query 3.0.2
>
>
> The JCR strategy for the {{find()}} method creates a JCR-SQL2 query using {{ISDESCENDANTNODE}} predicate. Right now it uses brackets to escape paths, which isn't compatible with node names starting with a digit. Change it to an apostrophe: {{ISDESCENDANTNODE('/content/path')}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)