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

ASF GitHub Bot commented on WW-4909:
------------------------------------

yasserzamani closed pull request #97: WW-4909: Adds missing note about auto 
growth collection limit
URL: https://github.com/apache/struts-site/pull/97
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/source/core-developers/type-conversion.md 
b/source/core-developers/type-conversion.md
index 744c3c02..f7ba87fc 100644
--- a/source/core-developers/type-conversion.md
+++ b/source/core-developers/type-conversion.md
@@ -132,7 +132,7 @@ entry to <b>ClassName-conversion.properties</b> (Note that 
the PointConverter sh
 interface):
 
 ```
-point = com.acme.PointConverter</b></p>
+point = com.acme.PointConverter
 ```
 
 Your type converter should be sure to check what class type it is being 
requested to convert. Because it is used
@@ -366,6 +366,21 @@ CreateIfNull_beanList=true
 </s:iterator>
 ```
 
+### Auto growth collection limit
+
+There is a special constant that limits auto growth of a collection, by 
default it is set to **255** which means
+only 256 elements are allowed in the collection. This limitation was 
introduced to avoid DoS attacks.
+If you know that the collection can have more elements you must define the 
below constant and set its value
+to desire size of the collection.
+
+```xml
+<constant name="struts.ognl.autoGrowthCollectionLimit" value="1024"/>
+``` 
+
+> NOTE: before this constant was named as `xwork.autoGrowCollectionLimit` but 
it is deprecated now and will be removed
+> with a next major release.
+
+
 ## Type Conversion Error Handling
 
 Type conversion error handling provides a simple way to distinguish between an 
input `validation` problem 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> List of Boolean is not populated in Action class
> ------------------------------------------------
>
>                 Key: WW-4909
>                 URL: https://issues.apache.org/jira/browse/WW-4909
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.5.10.1
>            Reporter: Bouagal
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 2.5.15
>
>
> In my application, a user sends a request with this parameter : 
> selectedLines[xx]=true where xx is a number. Stuts 2 should convert this 
> parameter into this property : List<Boolean> selectedLines in my action 
> class. The lenght of the list equals xx+1 and the list looks like this 
> [null,null,.....,true];
> Since I have upgraded Struts 2 to 2.5.10.1 From 2.3, that not works anymore 
> if xx>256. The list is empty.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to