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

ResourceMapperImpl tests no longer running with optimised alias resolution

    XMLWordPrintableJSON

    Details

      Description

      With SLING-9535 we changed the query that is issued for looking up aliases. That was not reflected in the stub resource resolver we use for tests, and starting at that point the tests were not running in the optimised alias resolution mode, even if requested. The only clue were messages logged in the console

      [main] ERROR org.apache.sling.resourceresolver.impl.mapping.MapEntries - Unexpected problem during initialization of optimize alias resolution. Therefore disabling optimize alias resolution. Please fix the problem.
      java.lang.UnsupportedOperationException: Unsupported query: 'SELECT sling:alias FROM nt:base AS page WHERE (NOT ISDESCENDANTNODE(page,"/jcr:system")) AND sling:alias IS NOT NULL '
      

        Attachments

          Activity

            People

            • Assignee:
              rombert Robert Munteanu
              Reporter:
              rombert Robert Munteanu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h