[ 
https://issues.apache.org/jira/browse/WICKET-5102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg reassigned WICKET-5102:
-------------------------------------

    Assignee: Igor Vaynberg
    
> 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
>            Assignee: Igor Vaynberg
>
> 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

Reply via email to