You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Rob Audenaerde <ro...@gmail.com> on 2015/09/28 10:54:53 UTC

StringValidator does not fail?

Hi all

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">


Is this a desired behavior? I found it rather confusing..

Re: StringValidator does not fail?

Posted by Rob Audenaerde <ro...@gmail.com>.
Hi Martin,

Thanks you the quick reply, I have created an issue and quickstart:

https://issues.apache.org/jira/browse/WICKET-5987

-Rob

On Mon, Sep 28, 2015 at 10:57 AM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi,
>
> I looks like a bug.
> Please create a ticket with a quickstart and/or unit test.
> Thanks!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Sep 28, 2015 at 10:54 AM, Rob Audenaerde <rob.audenaerde@gmail.com
> >
> wrote:
>
> > Hi all
> >
> > 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">
> >
> >
> > Is this a desired behavior? I found it rather confusing..
> >
>

Re: StringValidator does not fail?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I looks like a bug.
Please create a ticket with a quickstart and/or unit test.
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Sep 28, 2015 at 10:54 AM, Rob Audenaerde <ro...@gmail.com>
wrote:

> Hi all
>
> 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">
>
>
> Is this a desired behavior? I found it rather confusing..
>