Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-99

/health endpoint still available after /subsystem=microprofile-health-smallrye:remove

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Component/s: MP Health
    • Labels:
      None

      Description

      /health endpoint still available after /subsystem=microprofile-health-smallrye:remove

      [standalone@localhost:9990 /] /subsystem=microprofile-health-smallrye:remove
      {"outcome" => "success"}
      

      I see 2 ways to go:
      A) reload required should be reported
      B) /health endpoint gets removed

      CLI says

      [standalone@localhost:9990 /] /subsystem=microprofile-health-smallrye:check
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0216: Management resource '[(\"subsystem\" => \"microprofile-health-smallrye\")]' not found",
          "rolled-back" => true
      }
      

      But curl is still happy:

      curl -v  http://127th.0.1:9990/health
      *   Trying 127.0.0.1...
      * TCP_NODELAY set
      * Connected to 127.0.0.1 (127.0.0.1) port 9990 (#0)
      > GET /health HTTP/1.1
      > Host: 127.0.0.1:9990
      > User-Agent: curl/7.54.0
      > Accept: */*
      >
      < HTTP/1.1 200 OK
      < Connection: keep-alive
      < Content-Type: application/json
      < Content-Length: 157
      < Date: Fri, 10 Aug 2018 08:47:02 GMT
      <
      * Connection #0 to host 127.0.0.1 left intact
      {"outcome":"UP","checks":[{"name":"AppHealth","state":"UP","data":{"application":"available"}},{"name":"CountHealthCheck","state":"UP","data":{"count":20}}]}
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jmesnil Jeff Mesnil
                Reporter:
                rsvoboda Rostislav Svoboda
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: