[
https://issues.apache.org/jira/browse/WICKET-4255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-4255.
-----------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
1.5.4
Assignee: Igor Vaynberg
> bug in org.apache.wicket.validation.validator.UrlValidator
> ----------------------------------------------------------
>
> Key: WICKET-4255
> URL: https://issues.apache.org/jira/browse/WICKET-4255
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: Alexander Lipatov
> Assignee: Igor Vaynberg
> Fix For: 1.5.4, 6.0.0
>
>
> Looks like there is a bug in UrlValidator. It validates URLs like
> "http://testhost.local/pages/index.php" as invalid.
> But URL is valid! Try to execute "new
> java.net.URL("http://testhost.local/pages/index.php");" for example. It does
> not throws "MalformedURLException" because URL is valid.
> In method: UrlValidator.isValidAuthority() there is code: "if
> (topLevel.length() < 2 || topLevel.length() > 4){return false;}" Looks like
> this "> 4" is a wrong constraint.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira