Setting the ResourceResponse.HTTP_STATUS_CODE property does not modify the 
actual server response status code.
--------------------------------------------------------------------------------------------------------------

                 Key: PLUTO-603
                 URL: https://issues.apache.org/jira/browse/PLUTO-603
             Project: Pluto
          Issue Type: Bug
          Components: portlet container
    Affects Versions: 2.0.2, 2.0.1
         Environment: Jetspeed 2.2.1 with Pluto 2.0.1 as a portlet container.
            Reporter: Alexander Malyshev


 If you set the ResourceResponse.HTTP_STATUS_CODE property of the 
ResourceResponseImpl object, the status remains unchanged. Without this 
capability ajax calls return 200 Success even if you set an error.

Following code change in ResourceResponseImpl fixes an issue:

    @Override
    public void setProperty(String name, String value)
    {
         if (HTTP_STATUS_CODE.equals(name)) {
            getServletResponse().setStatus(Integer.parseInt(value));
        } else {
            super.setProperty(name, value);
        }
    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to