commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ignatysh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-425) UrlValidator fails to validate punycode encode URLs
Date Tue, 30 May 2017 12:33:04 GMT
Michael Ignatysh created VALIDATOR-425:
------------------------------------------

             Summary: UrlValidator fails to validate punycode encode URLs
                 Key: VALIDATOR-425
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-425
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.6
            Reporter: Michael Ignatysh


When working with non-ASCII characters in URL, domain section of such URLs may be encoded
with Punycode. 
In such cases, a top level domain may contain "-" character, which fails validation. 

Example:
http://кто.ру/ - is a valid URL which will be encoded as:
http://xn--j1ail.xn--p1ag/

The expected behavior is that second URL passes validation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message