commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-411) UrlValidator accepts ports above max limit of 16-bit unsigned integer
Date Sat, 04 Feb 2017 14:23:52 GMT

    [ https://issues.apache.org/jira/browse/VALIDATOR-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852810#comment-15852810
] 

Sebb commented on VALIDATOR-411:
--------------------------------

[Not sure how this was left off the commit; it was previously coded and tested.]

URL: http://svn.apache.org/viewvc?rev=1781671&view=rev
Log:
VALIDATOR-411 UrlValidator accepts ports above max limit of 16-bit unsigned integer - oops
left off change

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java


> 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
>             Fix For: 1.5.2
>
>
> 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.15#6346)

Mime
View raw message