[
https://issues.apache.org/struts/browse/WW-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43931#action_43931
]
Musachy Barroso commented on WW-2307:
-------------------------------------
I think you are confusing parameters interceptor with validation. The value is
truncated when it is set in your action, the problem is that if the truncated
value is in the validation range, then the app won't find out about it.
Assuming your Int Range validator as a range of [-1, 10 ], and the user enters
"111111111111111111111111111111111" then the validation will pass (-1 is the
truncated value)
> The value of the parameter is changing when the validation occurs both with
> annotation and xml
> ----------------------------------------------------------------------------------------------
>
> Key: WW-2307
> URL: https://issues.apache.org/struts/browse/WW-2307
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.0.11
> Environment: WindowsXP SP2 and jboss 4.2.1
> Reporter: Jason Douglas de Oliveira
> Priority: Critical
> Fix For: Future
>
>
> When I have an action's attribute of Integer type and use the
> @IntRangeFieldValidator the value is returned truncated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.