You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/10/05 20:30:21 UTC

[jira] Resolved: (VALIDATOR-202) URL Validator isValid method fails with java.lang.ArrayIndexOutOfBoundsException at org.apache.commons.validator.UrlValidator.isValidAuthority(UrlValidator.java:367)

     [ http://issues.apache.org/jira/browse/VALIDATOR-202?page=all ]

Henri Yandell resolved VALIDATOR-202.
-------------------------------------

    Fix Version/s: 1.3.1
       Resolution: Fixed
         Assignee: Henri Yandell

svn ci -m "Fixing ArrayOutOfBoundsException bug reported in #VALIDATOR-202. This fix is pretty simple - 'Create an array of size # of .s plus one', but the implementation of that isn't very beautiful. "

Sending        src/share/org/apache/commons/validator/UrlValidator.java
Sending        src/test/org/apache/commons/validator/UrlTest.java
Transmitting file data ..
Committed revision 453308.

> URL Validator isValid method fails with java.lang.ArrayIndexOutOfBoundsException at org.apache.commons.validator.UrlValidator.isValidAuthority(UrlValidator.java:367)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: VALIDATOR-202
>                 URL: http://issues.apache.org/jira/browse/VALIDATOR-202
>             Project: Commons Validator
>          Issue Type: Bug
>         Environment: JBOSS Running on Linux
>            Reporter: Ben
>         Assigned To: Henri Yandell
>             Fix For: 1.3.1
>
>         Attachments: 202-fix.patch, 202-test.patch
>
>
> Validating the following URL will throw an ArrayIndexOutOfBoundsException exception
> http://www.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.log
> Code:
>   String[] schemes = {"http","https"}.
>   UrlValidator urlValidator = new UrlValidator(schemes, UrlValidator.NO_FRAGMENTS) ;
>   urlValidator.isValid("http://www.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.logoworks.comwww.log") ;

-- 
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