You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Christophe Cordenier (Commented) (JIRA)" <ji...@apache.org> on 2012/03/21 09:43:50 UTC
[jira] [Commented] (PLUTO-603) Setting the
ResourceResponse.HTTP_STATUS_CODE property does not modify the actual
server response status code.
[ https://issues.apache.org/jira/browse/PLUTO-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13234201#comment-13234201 ]
Christophe Cordenier commented on PLUTO-603:
--------------------------------------------
I have encountered the same issue.
Will the fix be committed ?
Regards
Christophe Cordenier
> 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
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira