You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/11/05 19:50:27 UTC

[jira] [Resolved] (VALIDATOR-375) UrlValidator fails on IPv6 URL

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

Sebb resolved VALIDATOR-375.
----------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

URL: http://svn.apache.org/viewvc?rev=1712846&view=rev
Log:
VALIDATOR-375 UrlValidator fails on IPv6 URL

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java


> UrlValidator fails on IPv6 URL
> ------------------------------
>
>                 Key: VALIDATOR-375
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-375
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>    Affects Versions: 1.4.1 Release
>            Reporter: George Stanchev
>             Fix For: 1.5.0
>
>         Attachments: UrlValidatorTest.java.patch
>
>
> I have created an UrlValidator:
> {code:java}
> String[] schemes = {"http", "https"};
> UrlValidator urlValidator = new UrlValidator(schemes, UrlValidator.ALLOW_LOCAL_URLS);
> urlValidator.isValid("https://[fe80::8e0:6afa:a2d5:1c8a]/myapp")
> {code}
> evaluates to false.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)