Michael Osipov created VALIDATOR-411:
----------------------------------------
Summary: UrlValidator accepts ports above max limit of 16-bit
unsigned integer
Key: VALIDATOR-411
URL: https://issues.apache.org/jira/browse/VALIDATOR-411
Project: Commons Validator
Issue Type: Bug
Components: Routines
Affects Versions: 1.5.1
Reporter: Michael Osipov
Such a value {{http://host.organization.com:100000}} is gladly accepted because
the port ins never parsed and boundaries not checked.
{code:java}
public static void main(String[] args) {
UrlValidator validator = UrlValidator.getInstance();
System.out.println(validator.isValid("http://host.organization.com:100000"));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)