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

Bug 1082605

Summary: Public render parameter not propagated to the URL
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: mgottval <mgottval>
Component: PortalAssignee: Lucas Ponce <lponce>
Status: CLOSED NOTABUG QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: epp-bugs, mvecera
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: 2014-04-04 13:20:58 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
Demo URL Public Render Parameters propagation
none
ipc.zip none

Description mgottval 2014-03-31 13:07:18 UTC
I used this Producer-Consumer portlets to check Public render parameters.
https://github.com/gatein/gatein-portal/tree/master/examples/portlets/ipc

Steps to reproduce:
1. Create new page with Producer portlet on it.
2. Create new page with Consumer portlet on it.
3. Insert parameter into form in Producer portlet, the parameter is propagated into the page where Consumer is. But it is not propagated into URL. When change to Consumer page, I get an error "Action process encountered an error" and get exception. 

IllegalArgumentException: No null string array accepted
at org.gatein.pc.portlet.impl.jsr168.PortletParameterMap.setParameterValue(PortletParameterMap.java:101) [pc-portlet-2.5.0.Beta01.jar:2.5.0.Beta01]
	at org.gatein.pc.portlet.impl.jsr168.api.StateAwareResponseImpl.setRenderParameter(StateAwareResponseImpl.java:196) [pc-portlet-2.5.0.Beta01.jar:2.5.0.Beta01]
	at org.gatein.portal.samples.ipc.ProducerPublicRenderParameterPortlet.processAction(ProducerPublicRenderParameterPortlet.java:44) 
...

Comment 2 Lucas Ponce 2014-03-31 13:52:41 UTC
Created attachment 880752 [details]
Demo URL Public Render Parameters propagation

Comment 3 Lucas Ponce 2014-04-04 08:40:32 UTC
I couldn't reproduce reported issue.

Please, let me know if there is special step/environment needed to repeat the error.

Thanks !

Comment 4 mgottval 2014-04-04 11:43:32 UTC
I can't find any special environment. I happens to me every time, but the parameters are working. 
In the ProducerPublicRenderParameterPortlet during processAction 
String newPublicParameter = request.getParameter("newPublicParameter"); 
newPublicParameter is evaluated and set as render parameter, but then it is evaluated again and the newPublicParameter is null. (I added logging in the processAction to one line, and I get :"paramName1", null - null is evaluated for the second time)

Comment 5 mgottval 2014-04-04 12:16:41 UTC
Created attachment 882666 [details]
ipc.zip

Comment 6 Lucas Ponce 2014-04-04 13:20:58 UTC
We couldn't reproduce issue with a clean session of Chrome browser.