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
View this message in rfc822 format
Bumping this bug report as it is relevant to commit 1868309 which
recently addressed the issue with domain names starting with numbers.
> author Andy Wingo <wingo <at> pobox.com> 2012-02-21 16:42:53 (GMT)
> commit 1868309a9e34a04a5b3020e147d0ce029038b290 (patch) (side-by-side diff)
> ...
> (define ipv6-regexp
> - (make-regexp "^\\[([0-9a-fA-F:]+)\\]+"))
> + (make-regexp "^\\[([0-9a-fA-F:]+)\\]+$"))
Please compare this regexp to the one in the previously sent 0001
patch. You will note that the second "+" here matches values with
extraneous characters such as "[::1]]]".
Also, the character group does not include a "." which is valid in
ipv6 addresses with dotted-quad notation[1]. This is introduced by
the 0002 patch (see below).
0001 provides additional test cases handling domains names starting
with numbers as well.
Daniel Hartwig <mandyke <at> gmail.com> wrote:
> Also, `string->uri' does not handle ipv6 addresses:
>
> scheme@(guile-user)> (string->uri "http://[2001:db8::1]")
> $2 = #f
This issue remains outstanding and addressed in the 0002 patch with
test cases provided.
Regards
[1] http://tools.ietf.org/html/rfc1884#page-5
3. An alternative form that is sometimes more convenient when
dealing with a mixed environment of IPv4 and IPv6 nodes is
x:x:x:x:x:x:d.d.d.d, where the 'x's are the hexadecimal values
of the six high-order 16-bit pieces of the address, and the 'd's
are the decimal values of the four low-order 8-bit pieces of the
address (standard IPv4 representation). Examples:
0:0:0:0:0:0:13.1.68.3
0:0:0:0:0:FFFF:129.144.52.38
or in compressed form:
::13.1.68.3
::FFFF:129.144.52.38
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.