[GLASSFISH-19307] GF returns for an invalid monitoring URI in the REST interface a body message of "SUCCESS" Created: 08/Nov/12  Updated: 21/Feb/13  Resolved: 21/Feb/13

Status: Resolved
Project: glassfish
Component/s: monitoring
Affects Version/s: 3.1.2.2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: pilhuhn Assignee: Jason Lee
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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



 Comments   
Comment by Jason Lee [ 21/Feb/13 ]

Fix committed (r59738)

Generated at Fri Mar 06 03:40:30 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.