commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VALIDATOR-204) isValid return false for a valid URL
Date Fri, 06 Oct 2006 21:30:22 GMT
    [ http://issues.apache.org/jira/browse/VALIDATOR-204?page=comments#action_12440607 ] 
            
Henri Yandell commented on VALIDATOR-204:
-----------------------------------------

The pattern is:

/^(/[-\\w:@&?=+,.!/~*'%$]*)?$/

So the above url fails on the ; and the _. I don't see any reason why they're not being allowed.
Looking at the ietf page, it seems to be fine there.

> isValid return false for a valid URL
> ------------------------------------
>
>                 Key: VALIDATOR-204
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-204
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.3.0 Release
>         Environment: JBOSS, Linux
>            Reporter: Ben
>
> IsValid returns false for the following valid Url:
>     http://tech.yahoo.com/rc/desktops/102;_ylt=Ao8yevQHlZ4On0O3ZJGXLEQFLZA5
> Stepping thru the code isValidPath return false for the above URL.
> Test Code:
>   String[] schemes = {"http","https"}. 
>   UrlValidator urlValidator = new UrlValidator(schemes) ; 
>   urlValidator.isValid("http://tech.yahoo.com/rc/desktops/102;_ylt=Ao8yevQHlZ4On0O3ZJGXLEQFLZA5")
;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message