struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [struts-site] branch asf-site updated: Updates production by Jenkins
Date Tue, 16 Jan 2018 07:30:56 GMT
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new a077e76  Updates production by Jenkins
a077e76 is described below

commit a077e76d23dbf995710cfdf44a00bb0c5b07c3b3
Author: jenkins <builds@apache.org>
AuthorDate: Tue Jan 16 07:30:54 2018 +0000

    Updates production by Jenkins
---
 content/core-developers/type-conversion.html | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/content/core-developers/type-conversion.html b/content/core-developers/type-conversion.html
index 250a0bc..151677a 100644
--- a/content/core-developers/type-conversion.html
+++ b/content/core-developers/type-conversion.html
@@ -144,6 +144,7 @@
   <li><a href="#collection-and-map-support" id="markdown-toc-collection-and-map-support">Collection
and Map Support</a>    <ul>
       <li><a href="#indexing-a-collection-by-a-property-of-that-collection" id="markdown-toc-indexing-a-collection-by-a-property-of-that-collection">Indexing
a collection by a property of that collection</a></li>
       <li><a href="#an-advanced-example-for-indexed-lists-and-maps" id="markdown-toc-an-advanced-example-for-indexed-lists-and-maps">An
advanced example for indexed Lists and Maps</a></li>
+      <li><a href="#auto-growth-collection-limit" id="markdown-toc-auto-growth-collection-limit">Auto
growth collection limit</a></li>
     </ul>
   </li>
   <li><a href="#type-conversion-error-handling" id="markdown-toc-type-conversion-error-handling">Type
Conversion Error Handling</a></li>
@@ -283,7 +284,7 @@ conversion to and from strings. So turning “3, 22” in to new Point(3,
22) is
 entry to <b>ClassName-conversion.properties</b> (Note that the PointConverter
should impl the TypeConverter
 interface):</p>
 
-<div class="highlighter-rouge"><pre class="highlight"><code>point = com.acme.PointConverter&lt;/b&gt;&lt;/p&gt;
+<div class="highlighter-rouge"><pre class="highlight"><code>point = com.acme.PointConverter
 </code></pre>
 </div>
 
@@ -521,6 +522,22 @@ CreateIfNull_beanList=true
 &lt;/s:iterator&gt;
 </code></pre>
 
+<h3 id="auto-growth-collection-limit">Auto growth collection limit</h3>
+
+<p>There is a special constant that limits auto growth of a collection, by default
it is set to <strong>255</strong> 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.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;constant</span>
<span class="na">name=</span><span class="s">"struts.ognl.autoGrowthCollectionLimit"</span>
<span class="na">value=</span><span class="s">"1024"</span><span
class="nt">/&gt;</span>
+</code></pre>
+</div>
+
+<blockquote>
+  <p>NOTE: before this constant was named as <code class="highlighter-rouge">xwork.autoGrowCollectionLimit</code>
but it is deprecated now and will be removed
+with a next major release.</p>
+</blockquote>
+
 <h2 id="type-conversion-error-handling">Type Conversion Error Handling</h2>
 
 <p>Type conversion error handling provides a simple way to distinguish between an input
<code class="highlighter-rouge">validation</code> problem 

-- 
To stop receiving notification emails like this one, please contact
['"commits@struts.apache.org" <commits@struts.apache.org>'].

Mime
View raw message