[struts] 01/01: Merge pull request #199 from yasserzamani/WW-4906

2018-01-15 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 29e1847f64088b1d172631fbc5253b0f2e40144f
Merge: 29b29a9 9739291
Author: Lukasz Lenart 
AuthorDate: Mon Jan 15 11:50:46 2018 +0100

Merge pull request #199 from yasserzamani/WW-4906

 fix conversion by annotation and WW-4906

 .../conversion/annotations/TypeConversion.java | 15 -
 .../impl/DefaultConversionAnnotationProcessor.java | 19 +++
 .../impl/DefaultConversionFileProcessor.java   |  4 +--
 .../xwork2/conversion/impl/XWorkConverter.java | 25 +++---
 .../com/opensymphony/xwork2/AnnotatedTestBean.java | 13 
 .../impl/AnnotationXWorkConverterTest.java | 10 +-
 .../com/opensymphony/xwork2/ognl/OgnlUtilTest.java |  2 +-
 .../xwork2/ognl/OgnlValueStackTest.java| 13 
 .../xwork2/ognl/SetPropertiesTest.java | 39 +-
 .../xwork2/test/annotations/PersonAction.java  |  2 +-
 .../java/com/opensymphony/xwork2/util/Foo.java | 25 ++
 .../com/opensymphony/xwork2/util/MyBeanAction.java | 31 +
 .../opensymphony/xwork2/util/MyBeanActionTest.java | 33 ++
 13 files changed, 206 insertions(+), 25 deletions(-)


-- 
To stop receiving notification emails like this one, please contact
"commits@struts.apache.org" .


[struts] branch master updated (29b29a9 -> 29e1847)

2018-01-15 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git.


from 29b29a9  Merge pull request #196 from lukaszlenart/init-like-a-boss
 add faf5018  add conversion by annotation missing tests
 add 77cbafb  fix conversion by annotation
 add ff903e7  add tests if conversion can get annotation from supers
 add 4394238  un-deprecate TypeConversion.converter plus some improvements
 add 9739291  change tests to cover more
 new 29e1847  Merge pull request #199 from yasserzamani/WW-4906

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.


Summary of changes:
 .../conversion/annotations/TypeConversion.java | 15 -
 .../impl/DefaultConversionAnnotationProcessor.java | 19 +++
 .../impl/DefaultConversionFileProcessor.java   |  4 +--
 .../xwork2/conversion/impl/XWorkConverter.java | 25 +++---
 .../com/opensymphony/xwork2/AnnotatedTestBean.java | 13 
 .../impl/AnnotationXWorkConverterTest.java | 10 +-
 .../com/opensymphony/xwork2/ognl/OgnlUtilTest.java |  2 +-
 .../xwork2/ognl/OgnlValueStackTest.java| 13 
 .../xwork2/ognl/SetPropertiesTest.java | 39 +-
 .../xwork2/test/annotations/PersonAction.java  |  2 +-
 .../java/com/opensymphony/xwork2/util/Foo.java | 25 ++
 .../com/opensymphony/xwork2/util/MyBeanAction.java | 31 +
 .../opensymphony/xwork2/util/MyBeanActionTest.java | 33 ++
 13 files changed, 206 insertions(+), 25 deletions(-)

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


[struts] 01/01: Merge pull request #200 from HedjuHor/BeanValidation_GroupingConstraints

2018-01-15 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 9bf89f82dc436a59bd23efc3834e1d9c4b3a0d29
Merge: 29e1847 d1df216
Author: Lukasz Lenart 
AuthorDate: Mon Jan 15 12:38:27 2018 +0100

Merge pull request #200 from HedjuHor/BeanValidation_GroupingConstraints

WW-4907 support JSR 303 Validation Groups in BeanValidation-Plugin

 .../constraints/ValidationGroup.java   |  51 
 .../interceptor/BeanValidationInterceptor.java |  31 +++--
 .../BeanValidationInterceptorTest.java | 138 -
 .../actions/ValidateGroupAction.java   |  70 +++
 .../struts/beanvalidation/models/Address.java  |   5 +-
 .../struts/beanvalidation/models/Person.java   |  36 +-
 .../src/test/resources/bean-validation-test.xml|  10 +-
 7 files changed, 318 insertions(+), 23 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@struts.apache.org" .


[struts] branch master updated (29e1847 -> 9bf89f8)

2018-01-15 Thread lukaszlenart
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git.


from 29e1847  Merge pull request #199 from yasserzamani/WW-4906
 add 5e4b385  support Constraints Group in BeanValidation-Plugin
 add 215eb62  refactoring ValidateGroup -> ValidationGroup
 add 87b2bd8  fixed some Logger calls. 
Hint:https://logging.apache.org/log4j/2.0/manual/api.html
 add 2b2de35  Revert "fixed some Logger calls. 
Hint:https://logging.apache.org/log4j/2.0/manual/api.html";
 add 7518e80  fixed getValidationGroups get called if not skipped 
Validation removed unnecessary LOG.isDebugEnabled()
 add d1df216  change default behavior
 new 9bf89f8  Merge pull request #200 from 
HedjuHor/BeanValidation_GroupingConstraints

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.


Summary of changes:
 .../constraints/ValidationGroup.java}  |  93 +++---
 .../interceptor/BeanValidationInterceptor.java |  31 +++--
 .../BeanValidationInterceptorTest.java | 138 -
 ...lDrivenAction.java => ValidateGroupAction.java} |  38 +-
 .../struts/beanvalidation/models/Address.java  |   5 +-
 .../struts/beanvalidation/models/Person.java   |  36 +-
 .../src/test/resources/bean-validation-test.xml|  10 +-
 7 files changed, 282 insertions(+), 69 deletions(-)
 copy 
plugins/{convention/src/main/java/org/apache/struts2/convention/annotation/ExceptionMappings.java
 => 
bean-validation/src/main/java/org/apache/struts/beanvalidation/constraints/ValidationGroup.java}
 (64%)
 copy 
plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/{ModelDrivenAction.java
 => ValidateGroupAction.java} (55%)

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


[struts-site] branch master updated (0d4e5ad -> be0c694)

2018-01-15 Thread yasserzamani
This is an automated email from the ASF dual-hosted git repository.

yasserzamani pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/struts-site.git.


from 0d4e5ad  Merge pull request #96 from fanofxiaofeng/master
 add bd3cf74  Adds a note how to use struts.ognl.autoGrowthCollectionLimit
 add 01e7319  remove unwanted HTML closing tags from source code fragment
 add 090e450  Merge pull request #1 from sdutry/limitable-extendable
 new be0c694  Merge pull request #97 from lukaszlenart/limitable-extendable

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.


Summary of changes:
 source/core-developers/type-conversion.md | 17 -
 1 file changed, 16 insertions(+), 1 deletion(-)

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


[struts-site] 01/01: Merge pull request #97 from lukaszlenart/limitable-extendable

2018-01-15 Thread yasserzamani
This is an automated email from the ASF dual-hosted git repository.

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

commit be0c694d0e2ae126f0d940defd1197d1135d739e
Merge: 0d4e5ad 090e450
Author: Yasser Zamani 
AuthorDate: Tue Jan 16 10:48:45 2018 +0330

Merge pull request #97 from lukaszlenart/limitable-extendable

WW-4909: Adds missing note about auto growth collection limit

 source/core-developers/type-conversion.md | 17 -
 1 file changed, 16 insertions(+), 1 deletion(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@struts.apache.org" .


[struts] branch master updated (9bf89f8 -> c3b85ae)

2018-01-15 Thread yasserzamani
This is an automated email from the ASF dual-hosted git repository.

yasserzamani pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git.


from 9bf89f8  Merge pull request #200 from 
HedjuHor/BeanValidation_GroupingConstraints
 add c21fb94  Defines a new constant to limit collection auto growth
 add e23197a  Uses the new constant and makes an old one deprecated
 add 1ec1e71  Adds test to cover the new constant
 add 355e4b5  Adds additional test to cover deprecated option
 new c3b85ae  Merge pull request #202 from lukaszlenart/limitable-extendable

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.


Summary of changes:
 .../ognl/accessor/XWorkListPropertyAccessor.java   | 15 +---
 .../java/org/apache/struts2/StrutsConstants.java   |  2 ++
 .../accessor/XWorkListPropertyAccessorTest.java| 41 ++
 3 files changed, 54 insertions(+), 4 deletions(-)

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


[struts] 01/01: Merge pull request #202 from lukaszlenart/limitable-extendable

2018-01-15 Thread yasserzamani
This is an automated email from the ASF dual-hosted git repository.

yasserzamani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git

commit c3b85aef7c2cacc58432fd94ec52a512177439bc
Merge: 9bf89f8 355e4b5
Author: Yasser Zamani 
AuthorDate: Tue Jan 16 10:49:16 2018 +0330

Merge pull request #202 from lukaszlenart/limitable-extendable

WW-4909: Renames a constant and adds a test

 .../ognl/accessor/XWorkListPropertyAccessor.java   | 15 +---
 .../java/org/apache/struts2/StrutsConstants.java   |  2 ++
 .../accessor/XWorkListPropertyAccessorTest.java| 41 ++
 3 files changed, 54 insertions(+), 4 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@struts.apache.org" .


[struts-site] branch asf-site updated: Updates production by Jenkins

2018-01-15 Thread git-site-role
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 
AuthorDate: Tue Jan 16 07:30:54 2018 +

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 @@
   Collection and Map Support

   Indexing
 a collection by a property of that collection
   An advanced 
example for indexed Lists and Maps
+  Auto growth collection 
limit
 
   
   Type Conversion Error 
Handling
@@ -283,7 +284,7 @@ conversion to and from strings. So turning “3, 22” in to 
new Point(3, 22) is
 entry to ClassName-conversion.properties (Note that the PointConverter 
should impl the TypeConverter
 interface):
 
-point = 
com.acme.PointConverter

+point = com.acme.PointConverter @@ -521,6 +522,22 @@ CreateIfNull_beanList=true +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. + + + + + + + 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 -- To stop receiving notification emails like this one, please contact ['"commits@struts.apache.org" '].