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

Oak: ServerSideScriptsTest integration test fails semi-randomly with 404 errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Oak
    • None

    Description

      Running the test against my experimental Oak launchpad, with a single JSP file under src/main/resources/scripts/sling-it (installer-duplicate.jsp or resourceresolver-api.jsp) works all the time, but when running with these two files present I get 404s about 50% of the time, details below.

      I haven't found the root cause yet. The 404 is set by the ResourceNotFoundException catch in SlingRequestProcessorImpl.processRequest(...)

      Failed tests: runScripts[1 - resourceresolver-api.jsp](org.apache.sling.launchpad.webapp.integrationtest.ServerSideScriptsTest):
      Expected 0 failing tests but got 1 for /Users/bert/workspace/apache/sling/launchpad/integration-tests/target/classes/scripts/sling-it/resourceresolver-api.jsp: [verifyContent[0
      (org.apache.sling.junit.scriptable.TestAllPaths): Expecting HTTP status 200 for path
      /apps/testing/sling/scripted-tests/installer-duplicate.test.txt
      expected:<200> but was:<404>]

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: