Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6659

HealthCheckExecutorServlet no longer serving requests to /system/health after upgrading to Jetty 5.1.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • healthcheck.core 2.2.0
    • None
    • Health Checks, HTTP Service
    • None

    Description

      Summary:
      In the Apache Sling Starter 13-SNAPSHOT, after upgrading to org.apache.felix.http.jetty 5.1.2 the health checks are no longer served on /system/health.

      Steps to Reproduce:

      1. Check out https://github.com/apache/sling-org-apache-sling-starter
      2. build with mvn clean package
      3. run with target/dependency/org.apache.sling.feature.launcher/bin/launcher -f target/slingfeature-tmp/feature-oak_tar.json
      4. wait a bit and run http://localhost:8080/system/health.txt

      Expected Behaviour:
      The health check status should be returned. Instead, the SlingMainServlet responds with a 404.

      Additional Details:
      Using the web console at http://localhost:8080/system/console/httpservice confirms that th path is served by the Sling Main Servlet.

      Screenshots:

      Resolution results

      Sling servlet context and registration

      HealthCheck servlet registration using the default servlet context

      Attachments

        1. image-2023-10-11-22-17-10-606.png
          15 kB
          Robert Munteanu
        2. image-2023-10-11-22-18-13-245.png
          24 kB
          Robert Munteanu
        3. image-2023-10-11-22-18-50-570.png
          89 kB
          Robert Munteanu

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: