[jira] [Resolved] (PLUTO-603) Setting the ResourceResponse.HTTP_STATUS_CODE property does not modify the actual server response status code.
"Scott Nicklous (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.jakarta.pluto.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/PLUTO-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Nicklous resolved PLUTO-603.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
ResourceResponse now allows a status code to be set.
> 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.1, 2.0.2
> Environment: Jetspeed 2.2.1 with Pluto 2.0.1 as a portlet container.
> Reporter: Alexander Malyshev
> Fix For: 3.0.0
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)