Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.BETA
-
Fix Version/s: 4.2
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Portlet 3.0 / Mojarra 2.3.0-m10
-
Assignee Priority:P1
Description
h3. Steps to Reproduce:
A. Follow steps #1 - #11 inICE-11241.
B. Using the browser inspection tools, view the list of network requests
C. Using the "Choose Files" button, select a file to upload.
D. Click on the "Add Attachment" button
E. Examine the "Headers" of the XHR postback (the JSF partial request)
(/) Expected Results
Request parameters like "javax.faces.partial.execute", "javax.faces.partial.render", "file-entry-id", and "ice.fileEntry.ajaxResponse" are properly prefixed with the portlet namespace. For example:
{noformat}
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.encodedURL"
/pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;_jsfBridgeAjax:true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.encodedURL"
/pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;ice.view:vau7scq2%3A0/__rv0;ice.fileEntry.multipart:true/__rv0;ice.window:4hizkbmr88/__rv0;_jsfBridgeAjax:true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:file-entry-id"
fileEntryComp
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.window"
4hizkbmr88
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.view"
vau7scq2:0
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:fileEntryComp"; filename="About Downloads.pdf"
Content-Type: application/pdf
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:_t46"
Add Attachment
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ViewState"
-8366486400589380942:5984252524555356248
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ClientWindow"
4hizkbmr88
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.source"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.execute"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.render"
@all
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.ajax"
true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.ajaxResponse"
true
------WebKitFormBoundaryShrweHKzcB8GSFHv--
{noformat}
(x) Actual Results
Request parameters are *not* prefixed with the portlet namespace, and the file does not upload.
A. Follow steps #1 - #11 in
B. Using the browser inspection tools, view the list of network requests
C. Using the "Choose Files" button, select a file to upload.
D. Click on the "Add Attachment" button
E. Examine the "Headers" of the XHR postback (the JSF partial request)
(/) Expected Results
Request parameters like "javax.faces.partial.execute", "javax.faces.partial.render", "file-entry-id", and "ice.fileEntry.ajaxResponse" are properly prefixed with the portlet namespace. For example:
{noformat}
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.encodedURL"
/pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;_jsfBridgeAjax:true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.encodedURL"
/pluto/portal/icefaces-applicant/__pdcom.liferay.faces.demo.icefaces.applicant.portlet.1%21-815993408%7C0;0/__rs0/__clcacheLevelPage/__rv0;_facesViewIdResource:0x3WEB-INF0x3views0x3portletViewMode.xhtml/__rv0;ice.view:vau7scq2%3A0/__rv0;ice.fileEntry.multipart:true/__rv0;ice.window:4hizkbmr88/__rv0;_jsfBridgeAjax:true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:file-entry-id"
fileEntryComp
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.window"
4hizkbmr88
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.view"
vau7scq2:0
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:fileEntryComp"; filename="About Downloads.pdf"
Content-Type: application/pdf
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2:_t46"
Add Attachment
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ViewState"
-8366486400589380942:5984252524555356248
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.ClientWindow"
4hizkbmr88
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.source"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.execute"
Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:f2
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.render"
@all
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:javax.faces.partial.ajax"
true
------WebKitFormBoundaryShrweHKzcB8GSFHv
Content-Disposition: form-data; name="Pluto_com_liferay_faces_demo_icefaces_applicant_portlet_1__815993408_0_:ice.fileEntry.ajaxResponse"
true
------WebKitFormBoundaryShrweHKzcB8GSFHv--
{noformat}
(x) Actual Results
Request parameters are *not* prefixed with the portlet namespace, and the file does not upload.
JS Console errors seen with Neil's patches.