commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R (JIRA)" <j...@apache.org>
Subject [jira] Created: (VALIDATOR-239) UrlValidator does not support some valid URLs
Date Fri, 28 Sep 2007 21:10:50 GMT
UrlValidator does not support some valid URLs
---------------------------------------------

                 Key: VALIDATOR-239
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-239
             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("http://www.instrumentpro.com/fullsize/http://www.instrumentpro.com/Merchant2/graphics/00000001/seypatb3.jpg")){
    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.


Mime
View raw message