[
https://issues.apache.org/jira/browse/VALIDATOR-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315762#comment-17315762
]
cda commented on VALIDATOR-307:
-------------------------------
The following tests fail for valid IPV6:
{code:java}
UrlValidator.getInstance().isValidAuthority("2001:0db8:0000:0000:0000:ff00:0042:8329");
UrlValidator.getInstance().isValidAuthority("2001:db8:0:0:0:ff00:42:8329");
UrlValidator.getInstance().isValidAuthority("2001:db8::ff00:42:8329");
{code}
> isValid checks if the given address is only IPV4 address and not IPV6
> ---------------------------------------------------------------------
>
> Key: VALIDATOR-307
> URL: https://issues.apache.org/jira/browse/VALIDATOR-307
> Project: Commons Validator
> Issue Type: Improvement
> Components: Routines
> Affects Versions: 1.4.0 Release
> Reporter: Senthil Kumar
> Priority: Major
> Labels: ipv6, validation
> Fix For: 1.4.1 Release
>
> Attachments: VALIDATOR-307.patch
>
>
> function isValid(String inetAddress) checks if the given address is only IPV4
> and not IPV6. So the function returns false for a valid IPV6 address. Would
> it be possible to add IPV6 validation as well?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)