commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VALIDATOR-380) UrlValidator does not allow for optional port digits
Date Mon, 09 Nov 2015 23:40:11 GMT

     [ https://issues.apache.org/jira/browse/VALIDATOR-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved VALIDATOR-380.
----------------------------
    Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=1713569&view=rev
Log:
VALIDATOR-380 UrlValidator does not allow for optional port digits

Modified:
    commons/proper/validator/trunk/src/changes/changes.xml
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/UrlValidator.java
    commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java


> UrlValidator does not allow for optional port digits
> ----------------------------------------------------
>
>                 Key: VALIDATOR-380
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-380
>             Project: Commons Validator
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>
> According to RFC 3986, the port number is defined as:
> port    = *DIGIT
> This means 0 or more digits.
> If it required at least one digit then it would be:
> port    =  1*DIGIT
> However the code requires at least one digit.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message