You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org> on 2012/04/16 20:24:20 UTC
[jira] [Closed] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1906.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.4
5.3.3
Assignee: Howard M. Lewis Ship
> Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array
> ------------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-1906
> URL: https://issues.apache.org/jira/browse/TAP5-1906
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Labels: form
> Fix For: 5.3.3, 5.4
>
>
> Enter invalid text into a field that has client side validation
> Hit enter (to submit the form)
> Update the field value to be valid
> Hit enter (to submit the form)
> Form is submitted with a query parameter "t:submit" set to the blank string
> This triggers an exception inside Form:
> A JSONArray text must start with '[' at character 0 of
> org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
> org.apache.tapestry5.json.JSONArray.parse(JSONArray.java:126)
> org.apache.tapestry5.json.JSONArray.<init>(JSONArray.java:95)
> org.apache.tapestry5.corelib.components.Form.isFormCancelled(Form.java:590)
> org.apache.tapestry5.corelib.components.Form.advised$onAction_12856ebccc3a27e0(Form.java:511)
> org.apache.tapestry5.corelib.components.Form$Invocation_onAction_12856ebccc3a27df.proceedToAdvisedMethod(Unknown Source)
> org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
> org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingAdvice.java:37)
> org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
> org.apache.tapestry5.corelib.components.Form.onAction(Form.java)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira