commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Crum (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-375) UrlValidator fails on IPv6 URL
Date Fri, 25 Sep 2015 20:27:04 GMT

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

Adrian Crum commented on VALIDATOR-375:
---------------------------------------

Btw, if you remove the square brackets, the URL will validate.

> 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
>         Attachments: UrlValidatorTest.java.patch
>
>
> I have created an UrlValidator:
> String[] schemes = {"http", "https"};
> UrlValidator urlValidator = new UrlValidator(schemes, UrlValidator.ALLOW_LOCAL_URLS);
> urlValidator.isValid("https://[fe80::8e0:6afa:a2d5:1c8a]/myapp")
> evaluates to false.



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

Mime
View raw message