Stefan Seifert created SLING-10167:
--------------------------------------

             Summary: MapEntries.loadAliases generets JCR queries with illegal 
absolute paths
                 Key: SLING-10167
                 URL: https://issues.apache.org/jira/browse/SLING-10167
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
    Affects Versions: Resource Resolver 1.7.2
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
             Fix For: Resource Resolver 1.7.4


the code introduced with SLING-9535 generates JCR queries like this to load 
existing alias on startup:
{noformat}
SELECT sling:alias FROM nt:base AS page WHERE (NOT 
ISDESCENDANTNODE(page,"/jcr:system/")) AND sling:alias IS NOT NULL
SELECT sling:alias FROM nt:base AS page WHERE (NOT 
ISDESCENDANTNODE(page,"/parent1/")) AND sling:alias IS NOT NULL
{noformat}

this query are invalid, as "/jcr:system/" or "/parent1/" are not valid paths - 
valid paths must end not with "/".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to