Bug 871315

Summary: Backporting GTNPORTAL-2351 to EPP 5.2.x
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Takayuki Konishi <tkonishi>
Component: PortalAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.2.2.GACC: epp-bugs, theute
Target Milestone: ---   
Target Release: 5.2.3.ER01   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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