You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2015/09/28 22:01:05 UTC

[jira] [Commented] (WICKET-5987) StringLengthValidator does not validate, but cuts off input

    [ https://issues.apache.org/jira/browse/WICKET-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14933893#comment-14933893 ] 

Martin Grigorov commented on WICKET-5987:
-----------------------------------------

How do you manage to send the longer value to the server?
I guess you paste something longer than 20 chars but the browser accepts only the first 20 chars in the text field and thus sends just them.
Please verify with DevTools/Firebug.

> StringLengthValidator does not validate, but cuts off input
> -----------------------------------------------------------
>
>                 Key: WICKET-5987
>                 URL: https://issues.apache.org/jira/browse/WICKET-5987
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 7.0.0
>         Environment: ubuntu 14.04 LTS, Chrome 45, Java 8
>            Reporter: Rob Audenaerde
>            Assignee: Martin Grigorov
>         Attachments: stringlenghttest.zip
>
>
> I have a change-password-page with a PasswordField with a StringValidator.lengthBetween( 3, 20 ).
> I ran into an error where I could paste a long password (>20 chars), and Wicket not throwing errors, but cutting the password to length 20.
> Wicket version: 7.0
> Chrome: 45
> The maxlength is rendered as attribute on the element.
> <input id="password" type="password" name="password" value="" maxlength="20" minlength="3">



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)