[
https://issues.apache.org/struts/browse/WW-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-2307.
---------------------------------
Resolution: Fixed
Fixed on trunk xwork rv1879. The solution was to put the value into a
BigInteger or BigDecimal and compare the value with the MIN and MAX for the
type it is being converted to.
For example in showcase:
http://localhost:8080/validation/submitFieldValidatorsExamples.action
Entering "2147483647" for the int field will show this error: "must be integer
min 1 max 10 if supplied"
Entering "2147483648" for the int field will show this error: "Invalid field
value for field "integerValidatorField"
> 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: 2.1.3
>
>
> 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.