commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Scott (JIRA)" <>
Subject [jira] [Commented] (NET-511) CIDR check fails in subnet utils
Date Fri, 06 Dec 2013 14:53:36 GMT


Daniel Scott commented on NET-511:


An additional test (Which fails):

SubnetUtils utils = new SubnetUtils("");
SubnetInfo info = utils.getInfo();

My fix isn't 'right' in the context of the reported bug, but does allow me to create the object
above. The actual fix needs my change, plus further modifications to the code so that the
other methods work correctly.

I'm using the class to validate cidr strings passed in from user input. If the object creation
doesn't throw an exception, then the cidr is valid.



> CIDR check fails in subnet utils
> ------------------------------------------
>                 Key: NET-511
>                 URL:
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 3.3
>            Reporter: Kyriacos Elia
>            Priority: Minor
>         Attachments: permit_all_ips_cidr.patch
> The following example in SubnetUtils fails:
> SubnetUtils utils = new SubnetUtils("")
> utils.getInfo().isInRange(anyValidIpAddress);
> As '' is within the IPv4 specification, it should be supported.

This message was sent by Atlassian JIRA

View raw message