[
https://issues.apache.org/jira/browse/OFBIZ-10746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17363983#comment-17363983 ]
Syed Naqvi commented on OFBIZ-10746:
------------------------------------
In \framework\base\src\main\java\org\apache\ofbiz\base\util\UtilHttp.java
Take the mltiPartMap out side of the public static Map<String, Object> getMultiPartParameterMap(HttpServletRequest request)
Like:
private static Map<String, Object> multiPartMap = new HashMap<String, Object>();
public static Map<String, Object> getMultiPartParameterMap(HttpServletRequest request) { .....
Replace:
try {
uploadedItems = UtilGenerics.<FileItem>checkList(upload.parseRequest(request));
}
With:
try {
uploadedItems = UtilGenerics.<FileItem>checkList(upload.parseRequest(request));
if(!uploadedItems.isEmpty()){
multiPartMap.clear();
}
}
}
It works for me like a charm.
> Error while uploading file in Ecommerce Profile's File Manager
> ---------------------------------------------------------------
>
> Key: OFBIZ-10746
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10746> Project: OFBiz
> Issue Type: Bug
> Components: ecommerce
> Affects Versions: Trunk
> Reporter: Aishwary Shrivastava
> Assignee: Priya Sharma
> Priority: Major
> Fix For: Upcoming Branch
>
> Attachments: ErroUploadingFileOnFileManagerEcommerce.png, OFBIZ-10746.patch, OFBIZ-10746.patch
>
>
> On uploading File in Ecommerce Profile's File Manager,
> "The following required parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]" error is displaying.
>
> Steps to regenerate the issue:
> # Open Ecommerce on Ofbiz.
> # Login with any user.
> # Go to Profile.
> # Navigate down to File Manager.
> # Select Purpose.
> # Seletct Mime Type
> # Click upload.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)