[gatein-issues] [JBoss JIRA] Resolved: (GTNWSRP-121) WSRP sends only last POST parameter fro resource request.

Matt Wringe (JIRA) jira-events at lists.jboss.org
Tue Nov 2 11:27:02 EDT 2010


     [ https://jira.jboss.org/browse/GTNWSRP-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Wringe resolved GTNWSRP-121.
---------------------------------

    Resolution: Done


This issue has been fixed.
It was a combination of issues from GTNWSRP-60 and GTNPORTAL-1597

> 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
>    Affects Versions: 2.0.0-Beta05
>         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/ajaxPortlet
>            Reporter: Alexander Smirnov
>            Assignee: Matt Wringe
>             Fix For: 2.0.0-CR01
>
>
> 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

        


More information about the gatein-issues mailing list