Your message dated Tue, 04 Aug 2015 15:20:02 +0200
with message-id <[email protected]>
and subject line Re: Bug#731110: wget does not send Accept-Encoding and fails 
to handle Content-Encoding
has caused the Debian Bug report #731110,
regarding wget does not send Accept-Encoding and fails to handle 
Content-Encoding
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
731110: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731110
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wget
Version: 1.14-5
Severity: minor

I observed that wget downloads "wrong" content from a squid cache. Both
tools operate within the bounds of RFC2616, but the resulting
combination is wrong. Consider the following interaction:

A http client that supports Accept-Encoding and Content-Encoding
downloads an object via a squid3 proxy. An encoding that is not the
identity encoding is chosen and the response is considered cacheable by
squid3. At a later time wget is instructed to retrieve the same object
via the same proxy. Unlike the other client wget does not send an
Accept-Encoding header. The squid3 proxy exercises an assumption
explicitly granted by RFC2616 14.3:

| If no Accept-Encoding field is present in a request, the server MAY
| assume that the client will accept any content coding.

It thus sends back the cached object including the Content-Encoding
header, but wget does not handle the header and stores the object in
compressed form.

Note that RFC2616 goes on to say:

| In this case, if "identity" is one of the available content-codings,
| then the server SHOULD use the "identity" content-coding, unless it has
| additional information that a different content-coding is meaningful to
| the client.

So arguably squid3 is violating a SHOULD clause and should be fixed.

A simple mechanism to resolve the situation is to make wget send an
empty Accept-Encoding header by default or setting its value to
"identity".

Helmut

--- End Message ---
--- Begin Message ---
fixed 731110 1.16.2-1
thanks

Hello,

Am Montag, den 02.12.2013, 08:43 +0100 schrieb Helmut Grohne:

> I observed that wget downloads "wrong" content from a squid cache. 
> Both
> tools operate within the bounds of RFC2616, but the resulting
> combination is wrong. Consider the following interaction:
> 
> A http client that supports Accept-Encoding and Content-Encoding
> downloads an object via a squid3 proxy. An encoding that is not the
> identity encoding is chosen and the response is considered cacheable 
> by
> squid3. At a later time wget is instructed to retrieve the same 
> object
> via the same proxy. Unlike the other client wget does not send an
> Accept-Encoding header. The squid3 proxy exercises an assumption
> explicitly granted by RFC2616 14.3:
> 
> > If no Accept-Encoding field is present in a request, the server MAY
> > assume that the client will accept any content coding.
> 
> It thus sends back the cached object including the Content-Encoding
> header, but wget does not handle the header and stores the object in
> compressed form.
> 
> Note that RFC2616 goes on to say:
> 
> > In this case, if "identity" is one of the available content
> > -codings,
> > then the server SHOULD use the "identity" content-coding, unless it 
> > has
> > additional information that a different content-coding is 
> > meaningful to
> > the client.
> 
> So arguably squid3 is violating a SHOULD clause and should be fixed.
> 
> A simple mechanism to resolve the situation is to make wget send an
> empty Accept-Encoding header by default or setting its value to
> "identity".

this is fixed by upstream and in debian since some month.

I'm closing this report.

Regards

        Noël

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to