You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (Created) (JIRA)" <ji...@apache.org> on 2012/04/16 19:28:19 UTC
[jira] [Created] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
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
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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254918#comment-13254918 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-5.3-freestyle #23 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/23/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326736)
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326715)
Result = FAILURE
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326736
Files :
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326715
Files :
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Form.java
> 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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254909#comment-13254909 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-trunk-freestyle #702 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/702/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326710)
Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326710
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Form.java
> 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
[jira] [Closed] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254909#comment-13254909 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-trunk-freestyle #702 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/702/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326710)
Result = SUCCESS
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326710
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Form.java
> 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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254968#comment-13254968 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-trunk-freestyle #703 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/703/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326732)
Result = FAILURE
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326732
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
> 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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254918#comment-13254918 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-5.3-freestyle #23 (See [https://builds.apache.org/job/tapestry-5.3-freestyle/23/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326736)
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326715)
Result = FAILURE
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326736
Files :
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326715
Files :
* /tapestry/tapestry5/branches/5.3/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Form.java
> 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
[jira] [Closed] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (TAP5-1906) Interaction between client-side
validation and submit buttons can result in a server-side error parsing
JSON array
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254968#comment-13254968 ]
Hudson commented on TAP5-1906:
------------------------------
Integrated in tapestry-trunk-freestyle #703 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/703/])
TAP5-1906: Interaction between client-side validation and submit buttons can result in a server-side error parsing JSON array (Revision 1326732)
Result = FAILURE
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1326732
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
> 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