Description of problem: All attempts to retrieve the "alert/count" resource in the "application/xml" format fail with the following message: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rhqErrorWrapper> <message>Could not find MessageBodyWriter for response object of type: java.lang.Integer of media type: application/xml</message> </rhqErrorWrapper> No problems when using the "application/json" or "text/plain" formats. Version-Release number of selected component (if applicable): 4.5.1 How reproducible: Steps to Reproduce: 1. Set the "Accept" header to "application/xml" 2. Retrieve the "alert/count" resource 3. Investigate stack trace Actual results: The error message mentioned in the description. Expected results: A proper response. Additional info: None
In the past this method was only sending a single number, which was not valid for XML. This has now been changed into <value value="..."/> Similar for the StringValue type master 564ac02d1aa2c
Great, thanks!
*** Bug 906158 has been marked as a duplicate of this bug. ***
Bulk close of old bugs in VERIFIED state.