[jboss-jira] [JBoss JIRA] (WFWIP-99) /health endpoint still available after /subsystem=microprofile-health-smallrye:remove

Rostislav Svoboda (JIRA) issues at jboss.org
Fri Aug 10 04:55:01 EDT 2018


Rostislav Svoboda created WFWIP-99:
--------------------------------------

             Summary: /health endpoint still available after /subsystem=microprofile-health-smallrye:remove 
                 Key: WFWIP-99
                 URL: https://issues.jboss.org/browse/WFWIP-99
             Project: WildFly WIP
          Issue Type: Bug
          Components: MP Health
            Reporter: Rostislav Svoboda
            Assignee: Jeff Mesnil
            Priority: Critical


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

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

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

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

But curl is still happy:
{code}
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}}]}
{code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list