[
https://issues.apache.org/jira/browse/VALIDATOR-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351789#comment-16351789
]
ASF GitHub Bot commented on VALIDATOR-387:
------------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/commons-validator/pull/5
> Userinfo without colon should be valid in UrlValidator
> ------------------------------------------------------
>
> Key: VALIDATOR-387
> URL: https://issues.apache.org/jira/browse/VALIDATOR-387
> Project: Commons Validator
> Issue Type: Bug
> Affects Versions: 1.5.0
> Reporter: Shumpei Akai
> Priority: Major
> Fix For: 1.6
>
>
> UrlValidator does not accept userinfo without ":".
> The following code returns false.
> {code}
> UrlValidator validator = new UrlValidator();
> validator.isValid("http://[email protected]:80/path")
> {code}
> But it should be accepted.
> RFC of URI allows userinfo without colon.
> https://tools.ietf.org/html/rfc3986#section-3.2.1
> {quote}
> userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
> {quote}
> RFC of URL also allows it.
> https://tools.ietf.org/html/rfc1738#section-3.1
> {quote}
> //<user>:<password>@<host>:<port>/<url-path>
> Some or all of the parts "<user>:<password>@", ":<password>",
> ":<port>", and "/<url-path>" may be excluded.
> {quote}
> I created Pull Request.
> https://github.com/apache/commons-validator/pull/5
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)