You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Philippe Cloutier (Jira)" <ji...@apache.org> on 2023/09/26 16:07:00 UTC

[jira] [Comment Edited] (VALIDATOR-487) EmailValidator validates too much

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

Philippe Cloutier edited comment on VALIDATOR-487 at 9/26/23 4:06 PM:
----------------------------------------------------------------------

I am not an expert but would tend to agree that {{EmailValidator}} should allow "choosing" between RFC 5321 and [RFC 6530 _Overview and Framework for Internationalized Email_|https://datatracker.ietf.org/doc/html/rfc6530] since the latter is an extension which does not obsolete the former. This affects 1.7.

I suggest retitling to:
{quote}EmailValidator validates non-ASCII characters, assuming RFC 6530 (Internationalized Email)
{quote}


was (Author: chealer):
I am not an expert but would tend to agree that {{EmailValidator}} should allow "choosing" between RFC 5321 and RFC 6530 Overview and Framework for Internationalized Email since the latter is an extension which does not obsolete the former. This affects 1.7.

I suggest retitling to:
{quote}EmailValidator validates non-ASCII characters, assuming RFC 6530 (Internationalized Email)
{quote}

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