[hibernate-issues] [Hibernate-JIRA] Commented: (HV-364) @Email does not fail if tilda (~) or forward slash (/) are in the domain

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Sep 10 08:49:19 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38350#action_38350 ] 

Hardy Ferentschik commented on HV-364:
--------------------------------------

According to the [rfc 2822|http://www.faqs.org/rfcs/rfc2822.html] these are valid email addresses. Or at least '~' and '/' are valid characters. The problem is that many systems implemented a simpler (and in this case non con-formant) email parser. Implementing a email validator is always a trade off. See also this [article|http://www.regular-expressions.info/email.html].

> @Email does not fail if tilda (~) or forward slash (/) are in the domain
> ------------------------------------------------------------------------
>
>                 Key: HV-364
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-364
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: validators
>    Affects Versions: 4.1.0.Final
>         Environment: 4.1.0
>            Reporter: Anthony Gerrard
>            Assignee: Hardy Ferentschik
>
> The following email addresses do not result in constraint validations.  I believe they should
> test@~mydomain.com
> test at mydomain/com
> Looking at the mail specification it does seem to allow these email addresses but they're not compatible with javax.mail.internet.InternetAddress or indeed most email servers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list