You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pekka Lund (JIRA)" <ji...@apache.org> on 2013/03/15 17:02:14 UTC
[jira] [Created] (WICKET-5102) wicket-bean-validation: Bean
validation PropertyValidator only works with direct field access
Pekka Lund created WICKET-5102:
----------------------------------
Summary: wicket-bean-validation: Bean validation PropertyValidator only works with direct field access
Key: WICKET-5102
URL: https://issues.apache.org/jira/browse/WICKET-5102
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 6.6.0
Reporter: Pekka Lund
There's a substring indexing bug in the wicket-bean-validation module in org.apache.wicket.bean.validation.DefaultPropertyResolver that causes it to only work with direct field access and fail when field is missing and getter method should be used.
The problem is on this line:
String name = getter.getName().substring(3, 1).toLowerCase() + getter.getName().substring(4);
Which should be:
String name = getter.getName().substring(3, 4).toLowerCase() + getter.getName().substring(4);
(or simply a single character access)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira