GNU bug report logs -
#10410
guile: uri module confused by domain names starting with numbers, ipv6 addresses
Previous Next
Reported by: Daniel Hartwig <mandyke <at> gmail.com>
Date: Fri, 30 Dec 2011 10:18:02 UTC
Severity: normal
Tags: patch
Found in version 2.0.3
Done: Andy Wingo <wingo <at> pobox.com>
Bug is archived. No further changes may be made.
Full log
Message #25 received at 10410 <at> debbugs.gnu.org (full text, mbox):
Hi Daniel,
Thanks for testing (& for the original patches :)
On Sat 07 Jul 2012 06:01, Daniel Hartwig <mandyke <at> gmail.com> writes:
> One small nitpick, depending on what uri-host is defined to be
> returning this may or may not differ from spec.:
>
> host = IP-literal / IPv4address / reg-name
>
> IP-literal = "[" ( IPv6address / IPvFuture ) "]"
>
> In my intuition, a call to build-uri is naturally of the form:
>
> (build-uri #:scheme 'http
> #:host "[2001:db8::1]")
Yeah it is a bit confusing. I think the thing to do is to consider the
brackets as part of how ip-literals are delimited within a URI, and not
part of the host itself. Thus it would be Guile's responsibility to add
them or remove them. But as you say, this goes against the RFC.
At the same time, I'd like to be able to always pass the result of
inet-ntop to build-uri #:host.
The internet is a messy place!
Andy
--
http://wingolog.org/
This bug report was last modified 12 years and 318 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.