#include <hallo.h> * Francesco Poli [Sun, Feb 06 2011, 11:52:04PM]: > On Sun, 6 Feb 2011 19:55:23 +0100 Eduard Bloch wrote: > > [...] > > See below for log output. I think it should be fixed ASAP because IPv6 > > is coming and square brackets support in URLs will become mandatory. > > Hi Eduard, > thanks for your bug report! > > > > > Retrieving bug reports... 0% Fail > > Error retrieving bug reports from the server with the following error > > message: > > W: getaddrinfo: Name or service not known (http://[127.0.0.1]:3142) > > It appears that your network connection is down. Check network > > configuration and try again > > I am able to reproduce this behavior, but I am no IPv6 expert, > unfortunately.
Me neither. Until now, I was using getaddrinfo functionality to handle IP protocol independent issues, plus some extra considerations in URL parsing. > However apt-listbugs does not handle proxy servers directly: it relies > on Ruby libraries to do this. As a consequence, this bug report should > probably be reassigned to another package (maybe libruby1.8 or > libhttpclient-ruby1.8, see also the somewhat related bug #576118). Ok, that sounds like a bug in the URL parser of Ruby then. > Anyway, before I reassign the bug report, could you please explain me a > few things about what you are attempting to do? I was going through old test cases for apt-cacher-ng and one of the experiments included URLs with square brackets. The example in the bug report was, in fact, made with a v4 address but I considered the test cases equal for v6 and v4. Because the problem spoted here is most likely to be in the URL parser. > I read in /usr/lib/ruby/1.8/ipaddr.rb that "IPv6 address may be > enclosed in square brackets", but 127.0.0.1 is not an IPv6 address, ... be enclosed in an URL! Obviously required to parse the port spec correctly. When you call DNS resolution you have to trim them. > $ ping6 -c 3 ::1 > PING ::1(::1) 56 data bytes ... > $ ping6 -c 3 [::1] > unknown host > > Mmmmh, I must definitely study more about IPv6! Yeah, the brackets are not part of the hostname. As said, the parser needs to handle that while extracting hostname and port spec from the URL. Feel free to reassign the BR to Ruby packages, of course. Regards, Eduard. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org