Red Hat Bugzilla – Bug 817275
Setting the ResourceResponse.HTTP_STATUS_CODE property does not modify the actual server response status code
Last modified: 2016-08-02 12:04:39 EDT
Description of problem: Setting the ResourceResponse.HTTP_STATUS_CODE property does not modify the actual server response status code
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Set the status code from a serveResource Portlet context: resourceResponse.setProperty(ResourceResponse.HTTP_STATUS_CODE,"500")
2.Invoke the above serveResource from a client-side ajax request
3.Inspect the status code received in a web browser console: the web browser always receives a status code "200" .
This code works for instance with Gatein 3.2, the expected status code is correctly received on client-side.
Additional info:. It is probably related to https://bugzilla.redhat.com/show_bug.cgi?id=793073, closed 2 years ago.