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

Gary D. Gregory commented on VALIDATOR-487:
-------------------------------------------

It seems a sane way forward for meeting the expectations of casual users 
without breaking existing apps would be to provide more than one validator, 
strict RFC validators, and at least one other that reflects the current 
behavior.

> EmailValidator validates too much
> ---------------------------------
>
>                 Key: VALIDATOR-487
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-487
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.6
>            Reporter: Michael Osipov
>            Priority: Major
>
> Coming from https://github.com/everit-org/json-schema which uses 
> {{EMailValidator}} to validate JSON schema type:
> {noformat}
> {
> "type": "string",
> "format": "email"
> }
> {noformat}
> The problem is that the following email is returned as valid although 
> according to rfc5321#section-4.1.2 local-part/dot-string/atom/atext 
> (https://mailarchive.ietf.org/arch/msg/ietf-smtp/QlSTxHlY6cP6_Xwl6CpDvL5PQLo/)
>  it must only contain ASCII printable chars:
> {{др.живаго@example.com}}.
> I'd expect that one could validate standard addresses and IDN ones.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to