Putinas Piliponis created NET-529:
-------------------------------------
Summary: SubnetUtils throws exception on valid input
Key: NET-529
URL: https://issues.apache.org/jira/browse/NET-529
Project: Commons Net
Issue Type: Bug
Affects Versions: 3.3
Reporter: Putinas Piliponis
I think that 0.0.0.0/0 should be accepted value by SubnetUtils. (it's quite
commonly found on internet - indicating basically ALL ipv4 addresses).
Test case:
SubnetUtils subnetUtils = new SubnetUtils("0.0.0.0/0");
However it throws exception:
java.lang.IllegalArgumentException: Value [0] not in range (0,32]
org.apache.commons.net.util.SubnetUtils.rangeCheck(SubnetUtils.java:304)
org.apache.commons.net.util.SubnetUtils.calculate(SubnetUtils.java:229)
org.apache.commons.net.util.SubnetUtils.<init>(SubnetUtils.java:52)
--
This message was sent by Atlassian JIRA
(v6.2#6252)