Bug 871315 - Backporting GTNPORTAL-2351 to EPP 5.2.x
Summary: Backporting GTNPORTAL-2351 to EPP 5.2.x
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.2.2.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 5.2.3.ER01
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-30 08:30 UTC by Takayuki Konishi
Modified: 2020-04-27 01:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-2351 0 Major Resolved Portlet resource serving does not handle status code other than 200 OK 2015-12-18 16:18:26 UTC

Description Takayuki Konishi 2012-10-30 08:30:12 UTC
Description of problem:
When I add code[1] in APortlet.serveResource(), EPP doesn't return status code 404 and adds portlet.http-status-code header[2].
This issue was fixed in upstream[3]. So please backport to EPP 5.2.x

[1]
OutputStream outStream = response.getPortletOutputStream();
response.setProperty(response.HTTP_STATUS_CODE, "404");
outStream.write("404".getBytes("Shift_JIS"));
outStream.flush();
outStream.close();

[2]
Status=OK - 200
portlet.http-status-code=404

[3] https://issues.jboss.org/browse/GTNPORTAL-2351


Note You need to log in before you can comment on or make changes to this bug.