[ 
https://issues.apache.org/jira/browse/WW-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Lenart resolved WW-3431.
-------------------------------

    Resolution: Fixed

Solved, thanks for reporting!
                
> OVal plugin with javolution Destination array too small performing validation
> -----------------------------------------------------------------------------
>
>                 Key: WW-3431
>                 URL: https://issues.apache.org/jira/browse/WW-3431
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - OVal
>    Affects Versions: 2.1.8.1
>         Environment: java 1.6 struts-oval-plugin 2.1.8.1 javolution 5.4.2
>            Reporter: Nicolas Bohorquez Gutierrez
>            Assignee: Lukasz Lenart
>              Labels: oval, struts
>             Fix For: 2.3.3
>
>
> In method protected void performOValValidation(Object action, ValueStack 
> valueStack, String methodName, String context) throws NoSuchMethodException; 
> of org.apache.struts2.oval.interceptor.OValValidationInterceptor line 174 :
> addValidationErrors(violations.toArray(new ConstraintViolation[0]), action, 
> valueStack, null);
> the array provided as an argument for addValidationErrors() has size 0 that 
> causes a "Destination array too small" exception, it should be something like:
> addValidationErrors(violations.toArray(new 
> ConstraintViolation[violations.size]), action, valueStack, null);
> ini order to guarantee the size of array.
> thank you

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to