You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/02/12 10:37:00 UTC
[jira] [Commented] (OFBIZ-11534) Error in uploading very large files, ie >2GB
[ https://issues.apache.org/jira/browse/OFBIZ-11534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17491303#comment-17491303 ]
Jacques Le Roux commented on OFBIZ-11534:
-----------------------------------------
I tried this again today with a 1,79 Go file and got
{noformat}
SEVERE: Failed to complete processing of a request
java.lang.OutOfMemoryError: Java heap space
at org.apache.commons.fileupload.disk.DiskFileItem.get(DiskFileItem.java:308)
at org.apache.ofbiz.base.util.UtilHttp.getMultiPartParameterMap(UtilHttp.java:281)
at org.apache.ofbiz.base.util.UtilHttp.getParameterMap(UtilHttp.java:165)
at org.apache.ofbiz.base.util.UtilHttp.getParameterMap(UtilHttp.java:143)
at org.apache.ofbiz.base.util.UtilHttp.getCombinedMap(UtilHttp.java:127)
at org.apache.ofbiz.base.util.UtilHttp.getCombinedMap(UtilHttp.java:117)
at org.apache.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:120)
at org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:1026)
at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:677)
at org.apache.ofbiz.webapp.control.ControlServlet.handle(ControlServlet.java:231)
at org.apache.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:81)
{noformat}
It could maybe due to change done to secure uploads, but I don't know for sure. I don't reopen until someone reports it's an issue again...
> Error in uploading very large files, ie >2GB
> --------------------------------------------
>
> Key: OFBIZ-11534
> URL: https://issues.apache.org/jira/browse/OFBIZ-11534
> Project: OFBiz
> Issue Type: Bug
> Components: ALL APPLICATIONS
> Affects Versions: Trunk
> Reporter: Chandan Khandelwal
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: 17.12.03, 18.12.01
>
> Attachments: OFBIZ-11534.patch, OFBIZ-11534.patch
>
>
> There is an issue in uploading large files, I am able to upload files up to 2 GB successfully but getting an error when trying to upload a file larger than 2GB.
> Example -
> 1. Go to party profile -
> [https://demo-trunk.ofbiz.apache.org/partymgr/control/viewprofile?partyId=admin]
> 2. Try to create a party content with a file larger than 2 GB
> 3. Error on console
> ============================
> java.lang.NegativeArraySizeException: nulljava.lang.NegativeArraySizeException: null at org.apache.commons.fileupload.disk.DiskFileItem.get(DiskFileItem.java:308) ~[commons-fileupload-1.4.jar:1.4] at org.apache.ofbiz.base.util.UtilHttp.getMultiPartParameterMap(UtilHttp.java:275) ~[main/:?] at
> =============================
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)