Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10167

MapEntries.loadAliases generates JCR queries with illegal absolute paths

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      the code introduced with SLING-9535 generates JCR queries like this to load existing alias on startup:

      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
      

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

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              sseifert Stefan Seifert
              Reporter:
              sseifert Stefan Seifert

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m

                  Issue deployment