[jira] [Comment Edited] (OFBIZ-11534) Error in uploading very large files, ie >2MB

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-11534) Error in uploading very large files, ie >2MB

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084866#comment-17084866 ]

Jacques Le Roux edited comment on OFBIZ-11534 at 4/16/20, 1:32 PM:
-------------------------------------------------------------------

I'll also discuss on dev ML the http.upload.max.sizethreshold size. It's curently sets to 10240 (10KB) and that seems small nowadays to me. We could use 1MB. Also the size is hardcoded in several places.


was (Author: jacques.le.roux):
I'll other discuss on dev ML the http.upload.max.sizethreshold size. It's curently sets to 10240 (10KB) and that seems small nowadays to me. We could use 1MB.

> Error in uploading very large files, ie >2MB
> --------------------------------------------
>
>                 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
>         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.3.4#803005)