Package: approx
Version: 4.5-1
Severity: normal
Tags: ipv6

When attempting to make a request to an IPv6-enabled approx installation
(after applying the fix in #527397, *nudge*), attempts to use approx using
an IPv6 literal (using the format described in RFC2732), doesn't work.  To
test this, I use:

wget -O - 
'http://[fdca:8d73:456d:433c:21b:77ff:fe90:433c]:9999/debian/dists/squeeze/Release'
--2011-01-20 21:43:53--
http://[fdca:8d73:456d:433c:21b:77ff:fe90:433c]:9999/debian/dists/squeeze/Release
Connecting to fdca:8d73:456d:433c:21b:77ff:fe90:433c:9999... connected.
HTTP request sent, awaiting response... 400 Bad Request
2011-01-20 21:43:53 ERROR 400: Bad Request.

The problem, I surmise, is the Host: header that wget sends as part of it's
request:

GET /debian/dists/squeeze/Release HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: [fdca:8d73:456d:433c:21b:77ff:fe90:433c]:9999
Connection: Keep-Alive

To test this hypothesis, I setup an /etc/hosts alias to point a local name
at that IPv6 address; now everything works hunky-dory OK chief:

wget -O - http://approx:9999/debian/dists/squeeze/Release
--2011-01-20 21:50:37--  http://approx:9999/debian/dists/squeeze/Release
Resolving approx... fdca:8d73:456d:433c:21b:77ff:fe90:433c
Connecting to approx|fdca:8d73:456d:433c:21b:77ff:fe90:433c|:9999...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 89926 (88K) [text/plain]
[etc etc etc etc etc]

It would be nice if this could be fixed post-Squeeze, as it makes life hard
for those of us on the frontiers of next-generation Intertubes.  <grin>

- Matt


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental'), (1, 'unstable'), (1, 
'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.37-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages approx depends on:
ii  adduser                   3.110          add and remove users and groups
ii  bzip2                     1.0.5-1+lenny1 high-quality block-sorting file co
ii  cdebconf [debconf-2.0]    0.138lenny3    Debian Configuration Management Sy
ii  curl                      7.18.2-8lenny4 Get a file from an HTTP, HTTPS or 
ii  debconf [debconf-2.0]     1.5.24         Debian configuration management sy
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libpcre3                  8.02-1.1       Perl 5 Compatible Regular Expressi
ii  openbsd-inetd [inet-super 0.20080125-2   The OpenBSD Internet Superserver
ii  update-inetd              4.31           inetd configuration file updater

approx recommends no packages.

Versions of packages approx suggests:
pn  libconfig-model-approx-perl   <none>     (no description available)

-- Configuration Files:
/etc/approx/approx.conf changed [not included]

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to