[JBoss JIRA] Created: (GTNWSRP-121) WSRP sends only last POST parameter fro resource request.
by Alexander Smirnov (JIRA)
WSRP sends only last POST parameter fro resource request.
---------------------------------------------------------
Key: GTNWSRP-121
URL: https://jira.jboss.org/browse/GTNWSRP-121
Project: GateIn WSRP
Issue Type: Bug
Components: Consumer, Producer
Environment: gateIn from http://anonsvn.jboss.org/repos/gatein/portal/trunk ,
revision 4747. Jboss AS 5.1.GA, Jboss portletbridge 2.1.0-SNAPSHOT, portlet code https://svn.jboss.org/repos/portletbridge/trunk/examples/richfaces/ajaxPo...
Reporter: Alexander Smirnov
Assignee: Chris Laprun
There is chrome request information:
Request
URL:http://localhost:8080/portal/private/classic/samplePage?portal:componentId=ee00b55a-ca3a-479a-ac41-5778ec357d03&portal:type=resource&portal:isSecure=false&navigationalstate=JBPNS_rO0ABXdcACJqYXZheC5mYWNlcy5wb3J0bGV0YnJpZGdlLlNUQVRFX0lEAAAAAQApdmlldzowY2QxNmMwZS0xNTI5LTQ4MTgtOTAyMC04ZjBlYjIxYzFmODAAB19fRU9GX18*&portal:windowState=normal&portal:portletMode=view&portal:resourceID=JBPNS_rO0ABXdWABR3c3JwLXByZWZlck9wZXJhdGlvbgAAAAEABWZhbHNlAA93c3JwLXJlc291cmNlSUQAAAABABUvcGFnZXMvcmVwZWF0ZXIuZmFjZXMAB19fRU9GX18*&resourcestate=JBPNS_rO0ABXc2ABBfanNmQnJpZGdlVmlld0lkAAAAAQAVL3BhZ2VzL3JlcGVhdGVyLnhodG1sAAdfX0VPRl9f
Request Method:POST
Status Code:200 OK
Request Headers
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Origin:http://localhost:8080
Referer:http://localhost:8080/portal/private/classic/samplePage?portal:componentId=ee00b55a-ca3a-479a-ac41-5778ec357d03&portal:type=action&portal:isSecure=false&interactionstate=JBPNS_rO0ABXc2ABBfanNmQnJpZGdlVmlld0lkAAAAAQAVL3BhZ2VzL3JlcGVhdGVyLnhodG1sAAdfX0VPRl9f
User-Agent:Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7
(KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7
Query String Parameters
portal:componentId:ee00b55a-ca3a-479a-ac41-5778ec357d03
portal:type:resource
portal:isSecure:false
navigationalstate:JBPNS_rO0ABXdcACJqYXZheC5mYWNlcy5wb3J0bGV0YnJpZGdlLlNUQVRFX0lEAAAAAQApdmlldzowY2QxNmMwZS0xNTI5LTQ4MTgtOTAyMC04ZjBlYjIxYzFmODAAB19fRU9GX18*
portal:windowState:normal
portal:portletMode:view
portal:resourceID:JBPNS_rO0ABXdWABR3c3JwLXByZWZlck9wZXJhdGlvbgAAAAEABWZhbHNlAA93c3JwLXJlc291cmNlSUQAAAABABUvcGFnZXMvcmVwZWF0ZXIuZmFjZXMAB19fRU9GX18*
resourcestate:JBPNS_rO0ABXc2ABBfanNmQnJpZGdlVmlld0lkAAAAAQAVL3BhZ2VzL3JlcGVhdGVyLnhodG1sAAdfX0VPRl9f
Form Data
AJAXREQUEST:pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03:_viewRoot
pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03%3A_viewRoot%3Aj_id7:pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03:_viewRoot:j_id7
pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03%3A_viewRoot%3Aj_id7%3Aj_id10:a
javax.faces.ViewState:j_id3
pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03%3A_viewRoot%3Aj_id7%3Aj_id11:pbGee00b55a_2dca3a_2d479a_2dac41_2d5778ec357d03:_viewRoot:j_id7:j_id11
javax.faces.portletbridge.STATE_ID:view:0cd16c0e-1529-4818-9020-8f0eb21c1f80
:
Response Headers
Cache-Control:no-cache
Content-Length:0
Content-Type:text/html;charset=UTF-8
Date:Wed, 20 Oct 2010 19:37:44 GMT
Server:Apache-Coyote/1.1
X-Powered-By:Servlet 2.5; JBoss-5.0/JBossWeb-2.1
As you can see, this is a POST request, with both Query String
Parameters and Post Data. Now I inspect request objects in remote portlet:
ResourceRequest is
org.gatein.pc.portlet.impl.jsr168.api.ResourceRequestImpl.
It's parameters map is
org.gatein.pc.portlet.impl.jsr168.ResourceRequestParameterMap which
contains:
parametersMap: ParameterMap[_jsfBridgeViewId=/pages/repeater.xhtml |
javax.faces.portletbridge.STATE_ID=view:0cd16c0e-1529-4818-9020-8f0eb21c1f80]
privateParameters:
ParameterMap[_jsfBridgeViewId=/pages/repeater.xhtml |
javax.faces.portletbridge.STATE_ID=view:0cd16c0e-1529-4818-9020-8f0eb21c1f80]
privateRenderParameters:
ParameterMap[javax.faces.portletbridge.STATE_ID=view:0cd16c0e-1529-4818-9020-8f0eb21c1f80]
publicParameters is null.
The only last parameter from POST data comes to remote
portlet ( _jsfBridgeViewId is ResourceUrl parameter. This is the only
parameter, so I don't sure how WSRP implementation deals with multiply
ones ).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (GTNPORTAL-1596) NullPointerException in UIUserToolBarDashboardPortlet.gtmpl if no navigation.xml created for a LDAP user
by Gary Hu (JIRA)
NullPointerException in UIUserToolBarDashboardPortlet.gtmpl if no navigation.xml created for a LDAP user
--------------------------------------------------------------------------------------------------------
Key: GTNPORTAL-1596
URL: https://jira.jboss.org/browse/GTNPORTAL-1596
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Gary Hu
If there's no navigation.xml created for a LDAP user, NullPointerException is thrown from UIUserToolBarDashboardPortlet.gtmpl:
ERROR [org.exoplatform.webui.application.portlet.PortletApplicationController] (ajp-0.0.0.0-10209-1) Error while rendering the porlet
org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=94],data= if(currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){ ] for template app:/groovy/admintoolbar/webui/component/UIUserToolBarDashboardPortlet.gtmpl
at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:162)
at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:105)
at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112)
at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117)
at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132)
at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85)
at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processRender(UIApplicationLifecycle.java:66)
at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148)
at org.exoplatform.webui.core.UIPortletApplication.processRender(UIPortletApplication.java:103)
at org.exoplatform.webui.application.portlet.PortletApplication.render(PortletApplication.java:254)
at org.exoplatform.webui.application.portlet.PortletApplicationController.render(PortletApplicationController.java:110)
....
This could be fixed changing the following code in UIUserToolBarDashboardPortlet.gtmpl:
if(currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){
to
if(currentUserNavigation==null || currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months