glassfish
  1. glassfish
  2. GLASSFISH-19307

GF returns for an invalid monitoring URI in the REST interface a body message of "SUCCESS"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: monitoring
    • Labels:
      None

      Description

      When I issue a GET on a non-existing monitoring URI in the REST-interface I correctly get a 404 status back.
      The message body tells me that the request was a success, which is inconsistent with the 404:

      $ curl -i -HAccept:application/json http://localhost:4848/monitoring/domain/server/jvm/memoryXXX
      HTTP/1.1 404 Not Found
      Content-Type: application/json;charset=UTF-8
      Content-Length: 64
      Date: Thu, 08 Nov 2012 20:17:01 GMT

      {"message":"","command":"Monitoring Data","exit_code":"SUCCESS"}

      In comparison: This is a request for a valid uri, which returns a 200 code and also a SUCCESS exit_code

      snert:~ hrupp$ curl -i -HAccept:application/json http://localhost:4848/monitoring/domain/server/jvm/memory
      HTTP/1.1 200 OK
      Content-Type: application/json;charset=UTF-8
      Content-Length: 2217
      Date: Thu, 08 Nov 2012 20:16:04 GMT

      {"message":"","command":"Monitoring Data","exit_code":"SUCCESS","extraProperties":{"entity":{"committedheapsize-count":

      {"count":228327424,"lastsampletime":1352405764911,"description":"Amount of memory in bytes that is committed for the Java virtual machine to use","unit":"bytes","name":"CommittedHeapSize","starttime":1352294931853}

      ,"committednonheapsize-count":{"count":76283904,"lastsampletime":1352405764911,"desc

        Activity

          People

          • Assignee:
            Jason Lee
            Reporter:
            pilhuhn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: