[
http://opensource.atlassian.com/projects/hibernate/browse/HV-364?page=com...
]
Anthony Gerrard commented on HV-364:
------------------------------------
I think the specification is ambiguous and contradictory. It says:
"An addr-spec is a specific Internet identifier that contains a
locally interpreted string followed by the at-sign character ("@",
ASCII value 64) followed by an Internet domain."
...
"The domain portion identifies the point to which the mail is
delivered. In the dot-atom form, this is interpreted as an Internet
domain name (either a host name or a mail exchanger name) as
described in [STD3, STD13, STD14]. In the domain-literal form, the
domain is interpreted as the literal Internet address of the
particular host."
It links to standards that exclude tilda and slash (and all other special characters aside
from period and hyphen) from the domain portion. This contradicts the ABNF version which
allows any character in a dot atom.
I the light of this contradiction shouldn't @Email pick the most useful (and most
valid) alternative? Both the examples given here are based on something our users have
actually typed in the last month.
@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(a)~mydomain.com
test@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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira