You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/01/07 19:01:58 UTC
[jira] [Commented] (VALIDATOR-411) UrlValidator accepts ports above
max limit of 16-bit unsigned integer
[ https://issues.apache.org/jira/browse/VALIDATOR-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15807986#comment-15807986 ]
Michael Osipov commented on VALIDATOR-411:
------------------------------------------
Parts of the code can be reused from https://github.com/apache/commons-validator/commit/01fd9c792b8a2f3a7206d43c21d34de8135eaf6e.
> 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)