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

Sascha Rodekamp commented on OFBIZ-4982:
----------------------------------------

Hi Christoph,
thanks for the patch. 
One thought that comes in my mind: Is it a good idea to remove wrong date 
inputs? It's obvious when you type "123" in the Date/Time field. But what if 
the user accidentally switched day and month which could also result in an 
exception. If we remove the wrong input field this wouldn't be noticed at all.
Is it possible to use a "custom validation" to highlight the field on a wrong 
input?

Many thanks
Sascha
                
> js issue causes error when invalid dates are entered
> ----------------------------------------------------
>
>                 Key: OFBIZ-4982
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4982
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Christoph Neuroth
>            Assignee: Sascha Rodekamp
>            Priority: Minor
>         Attachments: ofbiz-i18n_dateinput_null_fix.patch
>
>
> Reproduce: Enter "123" in a DateField. This will trigger a JS exception and 
> the invalid value will be sent to the server on form submission, probably 
> causing server-side exceptions in badly written backend code, resulting in 
> really bad error messages for the user.

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

        

Reply via email to