[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#274978: state of #274978



"Eugene V. Lyubimkin" <jackyf.devel@gmail.com> writes:

> Hello Andrew, hello Dan.
>
> Is the problem present in apt >= 0.7.16 ?

In 0.7.16+b1 the problem still seems to be there.  I can't see
anything in the version 0.7.16 changelog that would show that the
problem has been removed.

Using WWWOFFLE with the option "reply-chunked-data = yes" as a proxy
for apt (you can reproduce the bug yourself this way) I got the
following contents of the file
/var/lib/apt/lists/partial/security.debian.org_dists_lenny_updates_Release.gpg:

-------------------- Release.gpg --------------------
bd^M
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBJIySipw2vU2Bw06ERAlyiAJ9U/XJcFnoS7ljy9E4yroB6td0+JgCfZOnq
Dupc2VvefbhnKLAo4Td/O/s=
=L6bw
-----END PGP SIGNATURE-----
^M
0^M
^M
-------------------- Release.gpg --------------------

The length of the good data is 189 bytes (0xbd in hex) and the file
looks just like it would be for un-decoded chunked encoding.

This can be proven to be the raw file that the proxy sends back by
using netcat (grabbed from xterm so ^M not visible):

-------------------- netcat --------------------
# netcat localhost 8080
GET http://ftp.uk.debian.org/debian/dists/lenny/Release.gpg HTTP/1.1

HTTP/1.1 200 OK
Date: Thu, 20 Nov 2008 09:33:08 GMT
Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
Last-Modified: Tue, 18 Nov 2008 20:25:06 GMT
ETag: "803b2-bd-7db8ec80"
Accept-Ranges: bytes
Content-Type: text/plain
Connection: close
Proxy-Connection: close
Transfer-Encoding: chunked

bd
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBJIySipw2vU2Bw06ERAlyiAJ9U/XJcFnoS7ljy9E4yroB6td0+JgCfZOnq
Dupc2VvefbhnKLAo4Td/O/s=
=L6bw
-----END PGP SIGNATURE-----

0

-------------------- netcat --------------------


As one of the other messages attached to this bug report points out
the problem is timing sensitive.  When I ran "apt-get update" on the
machine with the proxy it failed once, I deleted the contents of the
directory /var/lib/apt/lists/partial and it worked after that.  When I
ran it on another machine the problem showed up as repeated fetching
of the same files which eventually were OK, but other files then had
the same problem.  There were so many problems that I had to turn off
the chunked encoding option.

This section of the "apt-get update" output shows the repeated
fetching of the same file.

-------------------- apt-get update --------------------
...
Get:55 http://ftp.uk.debian.org lenny Release.gpg            
Get:56 http://ftp.uk.debian.org lenny Release.gpg            
Get:57 http://ftp.uk.debian.org lenny Release.gpg                    
Get:58 http://ftp.uk.debian.org lenny Release.gpg                  
Get:59 http://ftp.uk.debian.org lenny Release.gpg                  
Get:60 http://ftp.uk.debian.org lenny Release.gpg                  
Get:61 http://ftp.uk.debian.org lenny Release.gpg                
Get:62 http://ftp.uk.debian.org lenny Release.gpg                
Get:63 http://ftp.uk.debian.org lenny Release.gpg                  
Get:64 http://ftp.uk.debian.org lenny Release.gpg                  
Get:65 http://ftp.uk.debian.org lenny Release.gpg                
Get:66 http://ftp.uk.debian.org lenny Release.gpg                
Get:67 http://ftp.uk.debian.org lenny Release.gpg                
Get:68 http://ftp.uk.debian.org lenny Release.gpg                
Get:69 http://ftp.uk.debian.org lenny Release.gpg                
Get:70 http://ftp.uk.debian.org lenny Release.gpg                
Get:71 http://ftp.uk.debian.org lenny Release.gpg                
Get:72 http://ftp.uk.debian.org lenny Release.gpg                
Get:73 http://ftp.uk.debian.org lenny Release.gpg                
...
-------------------- apt-get update --------------------


After upgrading to 0.7.18 the problem is still there.

-- 
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop                             amb@gedanken.demon.co.uk
                                      http://www.gedanken.demon.co.uk/



Reply to: