This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release18.12 by this push:
     new 2405ca7  Improved: Error in uploading very large files, ie >2GB 
(OFBIZ-11534)
2405ca7 is described below

commit 2405ca77a53039d0ad44ea26ac58fd80959722ab
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Wed Feb 16 17:15:24 2022 +0100

    Improved: Error in uploading very large files, ie >2GB (OFBIZ-11534)
    
    I reopened, forgot that you need to set -PjvmArgs, as I commented before:
    <<For a 2GB+ file you need to set Xmx to more than the double of the file 
size,
    eg: gradlew ofbiz -PjvmArgs="-Xms1024M -Xmx5048M">>
    
    This also adds information in security.properties:
    <<By default (OOTB) OFBiz is protected against Large File Denial of 
Service>>
---
 framework/security/config/security.properties | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/security/config/security.properties 
b/framework/security/config/security.properties
index 36a2a99..4f69a46 100644
--- a/framework/security/config/security.properties
+++ b/framework/security/config/security.properties
@@ -234,3 +234,7 @@ login.uris=login
 #-- If you need to use localhost or 127.0.0.1 in textareas URLs then you can 
uncomment the allowedProtocols property, here given as an example
 #-- You may also put other protocols you want to use, instead or with those
 allowedProtocols=localhost,127.0.0.1
+
+#-- By default (OOTB) OFBiz is protected against Large File Denial of Service 
because build.gradle defines -Xmx1024M
+#-- So you can at most upload a file around 500MB (see OFBIZ-11534 for more 
info)
+#-- If you need to upload larger files then follow 
https://nightlies.apache.org/ofbiz/trunk/readme/html5/#passing-jvm-runtime-options-to-ofbiz

Reply via email to