You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2012/04/11 21:03:18 UTC
[jira] [Commented] (WW-3431) OVal plugin with javolution
Destination array too small performing validation
[ https://issues.apache.org/jira/browse/WW-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251848#comment-13251848 ]
Hudson commented on WW-3431:
----------------------------
Integrated in Struts2 #454 (See [https://builds.apache.org/job/Struts2/454/])
WW-3431 Solves problem with array initialization (Revision 1324871)
Result = SUCCESS
lukaszlenart :
Files :
* /struts/struts2/trunk/plugins/oval/src/main/java/org/apache/struts2/oval/interceptor/OValValidationInterceptor.java
> 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