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:Reproducible in a portlet environment, but technically not a portlet issue.
-
Assignee Priority:P1
Description
When uploading a file, visible input fields and hidden input fields will be returned as parts. But parameters found on the URL contained in the form's action attribute are not returned as parts.
FileEntryUpload.java only builds up a list of parameters from the parts that it finds. It needs to add the URL parameters as well.
For example, in a portlet environment the following are URL parameters:
ice.view=vtggqoq1:0
_jsfBridgeAjax=true
ice.fileEntry.multipart=true
ice.window=isizq7jutb
_facesViewIdResource=/WEB-INF/views/portletViewMode.xhtml
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
(/) Expected Results
The file is uploaded and appears in the list of uploaded files.
(x) Actual Results
The file is not uploaded and does not appear in the list of uploaded files and the partial-response will contain markup outside of the <partial-response>...</partial-response>
FileEntryUpload.java only builds up a list of parameters from the parts that it finds. It needs to add the URL parameters as well.
For example, in a portlet environment the following are URL parameters:
ice.view=vtggqoq1:0
_jsfBridgeAjax=true
ice.fileEntry.multipart=true
ice.window=isizq7jutb
_facesViewIdResource=/WEB-INF/views/portletViewMode.xhtml
h3. Steps to Reproduce:
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
(/) Expected Results
The file is uploaded and appears in the list of uploaded files.
(x) Actual Results
The file is not uploaded and does not appear in the list of uploaded files and the partial-response will contain markup outside of the <partial-response>...</partial-response>
Merge in the URL parameters with the multipart paramterers of the upload request.