When using "rest/healthcheck/1.0/check" REST API on Browser, the response message is not clear. It says "This XML file does not appear to have any style information..." which is misleading

XMLWordPrintable

    • Type: Bug
    • Resolution: Low Engagement
    • Priority: Low
    • None
    • Affects Version/s: 4.1.0
    • Component/s: REST
    • 1
    • Severity 3 - Minor
    • 1

      Problem

      When using the Healthcheck url for Crowd, the curl command provides an expected 200k when Crowd is running. But when the same is tried on browser, we are noticing a message which is confusing.

      For eg, if the following is used on browser:

      http://localhost:8095/crowd/rest/healthcheck/1.0/check . We see a message like the following on the browser:

      "This XML file does not appear to have any style information associated with it. The document tree is shown below"

      Whereas a curl command like below:

      curl -i http://localhost:8095/crowd/rest/healthcheck/1.0/check gives a response similar to the following. Which looks normal.

      HTTP/1.1 200 OK
      X-XSS-Protection: 1; mode=block
      X-Content-Type-Options: nosniff
      X-Frame-Options: SAMEORIGIN
      Content-Security-Policy: frame-ancestors 'self'
      X-ASEN: SEN-369156
      Set-Cookie: crowd.rememberme.token=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/crowd; HttpOnly
      Content-Type: application/xml;charset=UTF-8
      Content-Length: 0
      Date: Mon, 21 Sep 2020 15:50:37 GMTh3. Environment
      .

      Steps to Reproduce

      1. Log into Crowd versions 4.x.x or above. This is not occurring on older versions 3.3.x or below.
      2. From the browser, paste a url http://localhost:8095/crowd/rest/healthcheck/1.0/check

      Expected Results

      Either a 0k or Running message to indicate that Crowd is running should be shown along with http 200. 

      Actual Results

      We do note http 200, but we notice the following message on the browser:
      "This XML file does not appear to have any style information associated with it. The document tree is shown below"

      While  : *http://localhost:8095/crowd/status*

      is working correctly as expected

      Workaround

      None at this point

      Notes

            Assignee:
            Unassigned
            Reporter:
            Sathya Ganeshan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: