[struts-site] branch fix/WW-5321-max-string-length created (now b55a459b2)
This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a change to branch fix/WW-5321-max-string-length in repository https://gitbox.apache.org/repos/asf/struts-site.git at b55a459b2 WW-5321 Adds a note about a new parameter maxStringLength This branch includes the following new commits: new b55a459b2 WW-5321 Adds a note about a new parameter maxStringLength The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[struts-site] 01/01: WW-5321 Adds a note about a new parameter maxStringLength
This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch fix/WW-5321-max-string-length in repository https://gitbox.apache.org/repos/asf/struts-site.git commit b55a459b231e1987001e12b0eebf2bfc3af61ea9 Author: Lukasz Lenart AuthorDate: Wed Jul 26 07:56:25 2023 +0200 WW-5321 Adds a note about a new parameter maxStringLength --- source/core-developers/file-upload.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core-developers/file-upload.md b/source/core-developers/file-upload.md index efb67a229..f4eed69ef 100644 --- a/source/core-developers/file-upload.md +++ b/source/core-developers/file-upload.md @@ -247,6 +247,7 @@ struts.multipart.saveDir= # Filesystem location to save parsed request data struts.multipart.maxSize=2097152 # Max combined size of files per request struts.multipart.maxFiles=256 # Max number of files per request struts.multipart.maxFileSize= # Max size per file per request +struts.multipart.maxStringLength=4096 # Max length of a string parameter (a normal field) in a multipart request (since Struts 6.1.2.1) ``` You can also set the max options to unlimited by setting their value to `-1`, but please see the sections below for @@ -254,12 +255,11 @@ further details on these options first. ### Files Number Limit -Since Struts 6.1.2/6.2.0 a new option was added, which uses Commons FileUpload feature to limit how many files can be +Since Struts 6.1.2 a new option was added, which uses Commons FileUpload feature to limit how many files can be uploaded at once, in one request. This option requires to use Commons FileUpload ver. 1.5 at least and by default is set to **256**. Please always set this to a finite value to prevent DoS attacks. -To change this value define a constant -in `struts.xml` as follows: +To change this value define a constant in `struts.xml` as follows: ```xml
[struts-site] branch asf-staging updated: Updates stage by Jenkins
This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-staging in repository https://gitbox.apache.org/repos/asf/struts-site.git The following commit(s) were added to refs/heads/asf-staging by this push: new e5aef06cb Updates stage by Jenkins e5aef06cb is described below commit e5aef06cb95d6b3cf6abc08c337c05c113166fff Author: jenkins AuthorDate: Wed Jul 26 06:02:31 2023 + Updates stage by Jenkins --- content/core-developers/file-upload.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/core-developers/file-upload.html b/content/core-developers/file-upload.html index 0fe66ffc6..2eaf1ad0b 100644 --- a/content/core-developers/file-upload.html +++ b/content/core-developers/file-upload.html @@ -404,6 +404,7 @@ struts.multipart.saveDir= # Filesystem location to save parsed request data struts.multipart.maxSize=2097152 # Max combined size of files per request struts.multipart.maxFiles=256 # Max number of files per request struts.multipart.maxFileSize= # Max size per file per request +struts.multipart.maxStringLength=4096 # Max length of a string parameter (a normal field) in a multipart request (since Struts 6.1.2.1) You can also set the max options to unlimited by setting their value to -1, but please see the sections below for @@ -411,12 +412,11 @@ further details on these options first. Files Number Limit -Since Struts 6.1.2/6.2.0 a new option was added, which uses Commons FileUpload feature to limit how many files can be +Since Struts 6.1.2 a new option was added, which uses Commons FileUpload feature to limit how many files can be uploaded at once, in one request. This option requires to use Commons FileUpload ver. 1.5 at least and by default is set to 256. Please always set this to a finite value to prevent DoS attacks. -To change this value define a constant -in struts.xml as follows: +To change this value define a constant in struts.xml as follows: