|
|
|
[
Permlink
| « Hide
]
Henri Yandell - 08/May/06 03:55 PM
Only worry with marking this as a duplicate Don, is that the issue this duplicates says that the issue was fixed in 1.2.8, however the reporter is using 1.2.8.
Hello,
Currently we are using struts 1.2.9 that comes packed with commons-validator version 1.1.4 and it fails. Following your hint that the problem was in the commons-validator, we upgraded the version of commons-validator from jakarta to version 1.3 and everything works fine. Maybe you should check the version of commons-validator that comes packed in struts 1.2.9. Now I am not sure if for the testing I was using 1.2.9 instead of 1.2.8. We were changing versions in the development machines and maybe I was wrong in the bug report and we were using 1.2.9 instead of 1.2.8. Sorry for the confusion. If you want I can send you our test code. This issue was fixed by a combination of the changes in Struts 1.2.8 and Validator 1.2.0 - however both Struts 1.2.8 and Struts 1.2.9 were shipped with Validator 1.1.4 and so resolving the issue does require upgrading to a later version of Commons Validator as you have done. This was/is indicated on the Struts 1.2.8 upgrade notes on the wiki:
http://wiki.apache.org/struts/StrutsUpgradeNotes127to128 Also the Struts 1.2.9 upgrade notes on the wiki also highlight that it ships with 1.1.4 and suggest upgrading to a later version of Validator for bug fixes: http://wiki.apache.org/struts/StrutsUpgradeNotes128to129 There are a couple of reasons why Struts 1.2.8/1.2.9 shipped with Validator 1.1.4 rather than the latest Validator version: 1) Both of these Struts releases were maintenance releases primarily to fix security issues so sticking with the more stable/widely used Validator 1.1.4 seemed like a good idea - rather than the (at the time) brand new Validator 1.2.0/1.3.0 versions. In the case of Struts 1.2.8, which could have shipped with Validator 1.2.0, this IMO has proved to be a good decision since there were a number of bugs introduced in 1.2.0 (now fixed in Validator 1.3.0). 2) Struts 1.2.x has not been modified to support all the features in Validator 1.2.0 (i.e. Variables in Resource Bundles - see http://wiki.apache.org/jakarta-commons/ValidatorVersion120) - this doesn't necessarily mean it shouldn't be changed to use the latest Validator version, but it would IMO create confusion when people try to use this feature and find it doesn't work in Struts (prior to Struts 1.3.x). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||