Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 877462

Summary: MimeResponse should transmit JSR-286 Response properties when using WSRP
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: William Antônio <wsiqueir>
Component: PortalAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.1.1.GACC: epp-bugs, theute
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:26:57 UTC 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:
Attachments:
Description Flags
The WAR mentioned in the steps to reproduce session none

Description William Antônio 2012-11-16 15:36:20 UTC
Created attachment 646410 [details]
The WAR mentioned in the steps to reproduce session

Description of problem:
Setting HTTP Header "Content-disposition" in portlet's serverResource method do not have any effect when exposing this as a WSRP. The Headers will not be present.

Version-Release number of selected component (if applicable):
JBoss EPP 5.1.1

How reproducible:
A simple portlet exposed as a WSRP and setting header "Content-disposition" in serverResource, you will see that the headers will not be present when downloading the resource.

Steps to Reproduce:

) Place resource-header.war into vanilla jboss-epp-5.1.1 deploy folder
) Start jboss
) Browse to http://localhost:8080/portal and login as admin
) Go to Group->WSRP
) Activate selfv2
) Goto Administration->Application Management
) Import All Applications
) Goto Administration->Page Management
) Edit portal::classic::homepage
) Drag and drop local._resource-header.ResourceHeaderPortlet and selfv2._resource-header.ResourceHeaderPortlet (remote) to page and save
) Goto Home (http://localhost:8080/portal)
) Click 'Get Resource' on local ResourceHeaderPortlet, file is downloaded as attachment with filename 'demo.txt'
) Click 'Get Resource' on remote ResourceHeaderPortlet, file is downloaded as inline without filename because, the headers are missing

  
Actual results:
Missing headers set in serveResource method.

Expected results:
Presence of the headers when downloading the resource.

Additional info:
This problem leads to another problem which is the file be incorrectly downloaded.

Comment 3 Red Hat Bugzilla 2025-02-10 03:26:57 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.