[ http://issues.apache.org/jira/browse/VALIDATOR-202?page=comments#action_12439687 ] Ben commented on VALIDATOR-202: -------------------------------
Using commons-validator-1.3.0.jar - Version 1.3.0 of commons validator > 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 > > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]