wtetzner / exploding-fish

A URI library for Clojure
Other
150 stars 12 forks source link

NumberFormatException from URLs with literal IPv6 addresses #19

Closed ljosa closed 6 years ago

ljosa commented 6 years ago

As of the current master (67900b8), exploding-fish does not handle URLs with literal IPv6 addresses (see RFC 2732):

user=> (require '[org.bovinegenius.exploding-fish :as fish])
nil
user=> (fish/uri "http://[1080:0:0:0:8:800:200C:417A]/index.html")

NumberFormatException For input string: "0:0:0:8:800:200C:417A]"
java.lang.NumberFormatException.forInputString (NumberFormatException.java:65)