struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Bohorquez Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3431) OVal plugin with javolution Destination array too small performing validation
Date Thu, 08 Apr 2010 17:37:36 GMT
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
    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


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message