On Mon, Jan 23, 2012 at 06:18:06PM +0100, Ansgar Burchardt wrote:
> Andreas Beckmann <deb...@abeckmann.de> writes:
> > wget http://ftp.de.debian.org/debian/dists/sid/main/i18n/Translation-en
> >   => 404 Not Found
> > wget http://ftp.de.debian.org/debian/dists/sid/main/i18n/Translation-en.bz2
> >   => 200 OK Length: 3857620 (3.7M) [application/x-bzip2]
> > wget http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en
> >   => 200 OK Length: 3857620 (3.7M) [application/x-bzip2]
> > wget http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en.bz2
> >   => 200 OK Length: 3857620 (3.7M) [application/octet-stream]
> 
> > wget -S http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en
[..]
> >   Content-Type: application/x-bzip2
[..]
> >   Content-Location: Translation-en.bz2
[..] 
> I don't know how content negotiation in HTTP works, but it looks wrong
> to just send the compressed file when requesting the uncompressed
> version.  I think for transparent compression there needs to be a
> 'Content-Encoding' field somewhere.

It's expected behaviour for some content negotiation setup, and it's about
filename and not 'compressed or not', specially MultiViews in Apache.

> As it does not happen with all mirrors, but only with ftp2.de.d.o (and
> others?), I'm inclined to blame the mirror configuration.

A HTTP client for Translation-en, and the daemon tells in Content-Location that
the file sent is Translation-en.bz2, there is no problem (as long as the client
fully support HTTP).

And I am sure more mirrors than only ftp2.de.d.o may have Multiviews enabled.
(ftp2.de.d.o admin noticed if he wants to turn this off).
 
> >   Get:7 http://ftp2.de.debian.org sid/main Translation-en [3858 kB]
> >   Get:8 http://ftp2.de.debian.org sid/non-free Translation-en [69.5 kB]
> >   E: Unable to parse package file 
> > /var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en.decomp
> >  (1)
> >   Fetched 4162 kB in 3s (1209 kB/s)
> >   W: Failed to fetch 
> > copy:/var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en

I cannot reproduce the impact on apt that in a sid chroot using apt 0.8.15.9
"deb http://ftp2.de.debian.org/debian/ sid main"

Do you have some specific apt configuration ?

Any way, IMO it's up to apt to be robust to that.

Regards.

-- 
Simon Paillard



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to