[jira] Created: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen

JIRA jira@apache.org
EmailValidator approves email addresses with hostnames starting with a dash/hyphen
----------------------------------------------------------------------------------

                 Key: VALIDATOR-278
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-278
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.3.1 Release
            Reporter: Pål Orby
            Priority: Trivial


This example returns true
{code:java}
EmailValidator.getInstance().isValid("[hidden email]"); // hostname starts with dash/hyphen
{code}
but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname labels cannot begin or end with a hyphen.



--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/VALIDATOR-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pål Orby updated VALIDATOR-278:
-------------------------------

    Description:
These examples returns true
{code:java}
EmailValidator.getInstance().isValid("[hidden email]"); // hostname starts with dash/hyphen
EmailValidator.getInstance().isValid("[hidden email]"); // hostname ends with dash/hypen
{code}
but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname labels cannot begin or end with a hyphen.



  was:
This example returns true
{code:java}
EmailValidator.getInstance().isValid("[hidden email]"); // hostname starts with dash/hyphen
{code}
but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname labels cannot begin or end with a hyphen.




> EmailValidator approves email addresses with hostnames starting with a dash/hyphen
> ----------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-278
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-278
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.3.1 Release
>            Reporter: Pål Orby
>            Priority: Trivial
>
> These examples returns true
> {code:java}
> EmailValidator.getInstance().isValid("[hidden email]"); // hostname starts with dash/hyphen
> EmailValidator.getInstance().isValid("[hidden email]"); // hostname ends with dash/hypen
> {code}
> but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname labels cannot begin or end with a hyphen.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Chris Lee commented on VALIDATOR-278:
-------------------------------------

This appears to have been fixed shortly after the 1.3.1 release. You can build the 1.4 snapshot from source and both of those statements will return false.

> EmailValidator approves email addresses with hostnames starting with a dash/hyphen
> ----------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-278
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-278
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.3.1 Release
>            Reporter: Pål Orby
>            Priority: Trivial
>
> These examples returns true
> {code:java}
> EmailValidator.getInstance().isValid("[hidden email]"); // hostname starts with dash/hyphen
> EmailValidator.getInstance().isValid("[hidden email]"); // hostname ends with dash/hypen
> {code}
> but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname labels cannot begin or end with a hyphen.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.