Hide Forgot
Description of problem: REST API is responding bad content type when it responds 404 (client retrieves unexisting resource) Version-Release number of selected component (if applicable): Version: 4.3.0-SNAPSHOT Build Number: 14fc3e1 How reproducible:always Steps to Reproduce: 1.request non-existing resource http://localhost:7080/rest/1/resource/0.xml Actual results: server reports content-type to be application/xml but plain text is being send instead (same with json). In most clients this leads to exception when parsing response body. Expected results: server should respond message that matches content-type even
89027fe in master Note that only such errors can be "caught", that actually reach the application code. If an invalid REST-resource (i.e. path) is requested, the the exception is thrown by the container and thus can not be formatted according to requested content types.
verified RHQ 4.3 <rhqErrorWrapper> <message>A Resource with id 0 does not exist in inventory.</message> </rhqErrorWrapper> adding keyword "Needs Testcase" to flag this for possible addition to the QE automation
removing keyword "Needs Testcase", testcase 'nonexistingResource' covering this bz is in rest-groovy testuite
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE