Tomek Rękawek created SLING-3971:
------------------------------------

             Summary: SlingQuery doesn't escape path in the JCR queries
                 Key: SLING-3971
                 URL: https://issues.apache.org/jira/browse/SLING-3971
             Project: Sling
          Issue Type: Bug
          Components: Sling Query
            Reporter: Tomek Rękawek
             Fix For: Sling Query 2.0.2


Steps to reproduce:

# Create a resource R which name starts with {{0}}, eg. {{0res}}
# Create children resources
# Execute following code:
{code}
$(R).find();
{code}

Actual result: {{find()}} doesn't return any resources.
Expected result: {{find()}} should return resources created in step 2.

The bug is caused by the fact that SlingQuery doesn't escape paths passed to 
{{ISDESCENDANTNODE([])}} operator in {{JcrQueryBuilder#getConditionString()}}.



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

Reply via email to