Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-603

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.2
    • 3.0.0
    • portlet container
    • None
    • Jetspeed 2.2.1 with Pluto 2.0.1 as a portlet container.

    Description

      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); }

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            amalysh Alexander Malyshev
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: