You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dirk Lattermann (JIRA)" <ji...@apache.org> on 2009/10/08 12:48:31 UTC
[jira] Updated: (TAP5-883) Regexp validator behaviour differs on
client and server side
[ https://issues.apache.org/jira/browse/TAP5-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dirk Lattermann updated TAP5-883:
---------------------------------
Description:
In some situations, a value can pass client side regexp validation and fail the server side validation. This should not be the case.
The server regexp validator requires a value to match the regexp exactly from start to end which is not the case on the client (browser).
For example, given a regexp of [a-z]{2}, a value of hu4 passes validation on the client and fails on the server.
Workaround: use anchored regexps like ^[a-z]{2}$
was:
In some situations, a value can pass client side regexp validation and fail the server side validation. This should not be the case.
The server regexp validator requires a value to match the regexp exactly from start to end which is not the case on the client (browser).
For example, given a regexp of [a-z]{2}, a value of hu4 passes validation on the client and fails on the server.
Workaround: use anchord regexps like ^[a-z]{2}$
> Regexp validator behaviour differs on client and server side
> ------------------------------------------------------------
>
> Key: TAP5-883
> URL: https://issues.apache.org/jira/browse/TAP5-883
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Dirk Lattermann
> Priority: Minor
>
> In some situations, a value can pass client side regexp validation and fail the server side validation. This should not be the case.
> The server regexp validator requires a value to match the regexp exactly from start to end which is not the case on the client (browser).
> For example, given a regexp of [a-z]{2}, a value of hu4 passes validation on the client and fails on the server.
> Workaround: use anchored regexps like ^[a-z]{2}$
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.