commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Resolved: (VALIDATOR-239) UrlValidator does not support some valid URLs
Date Fri, 28 Sep 2007 21:22:50 GMT


Niall Pemberton resolved VALIDATOR-239.

    Resolution: Invalid

If you construct the UrlValidator with the "ALLOW_2_SLASHES" option then the url you gave
as an example passes validation, for example:

        UrlValidator validator = new UrlValidator(UrlValidator.ALLOW_2_SLASHES);

Closing as INVALID

> UrlValidator does not support some valid URLs
> ---------------------------------------------
>                 Key: VALIDATOR-239
>                 URL:
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>    Affects Versions: 1.3.1 Release
>         Environment: Linux, Java
>            Reporter: R
> Hello,
> It seems that URLs containing http:// in the middle of the URL are marked as invalid.
However, both Internet Explorer and Firefox work fine with them and deliver the right content.
Below is an example of an URL that works fine, but fails at the time of validation.
> String[] schemes={"http","https"};
> UrlValidator urlValidator=new UrlValidator(schemes);
> if(!urlValidator.isValid("")){
>     System.out.println("THE URL IS INVALID");
> }
> Thank you very much!

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

View raw message