icann / icann-rdap

ICANN implementation of the Registry Data Access Protocol (RDAP)
Apache License 2.0
15 stars 4 forks source link

Invalid Bootstrap Input #80

Open anewton1998 opened 2 months ago

anewton1998 commented 2 months ago

When using an incomplete ipv4 prefix, there is an error:

rdap --log-level debug 191.96/16
2024-09-03T19:34:54.395699Z  INFO rdap: ICANN RDAP 0.0.17_DEV_BUILD Command Line Interface
2024-09-03T19:34:54.395739Z  WARN rdap: This is a development build of this software.
2024-09-03T19:34:54.395746Z  INFO rdap: query type is IpV4 CIDR Lookup for value '191.96/16'
2024-09-03T19:34:54.396051Z DEBUG rdap::bootstrap: Checking for /home/andy/.cache/rdap/bootstrap_cache/ipv4.json
2024-09-03T19:34:54.396442Z DEBUG rdap::bootstrap: Reading /home/andy/.cache/rdap/bootstrap_cache/ipv4.json
2024-09-03T19:34:54.397119Z ERROR rdap: Invalid Bootstrap Input
Error: Invalid Bootstrap Input

It would be good if the input could use CIDR notation where the prefix isn't fully specified.