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

Bug#152711: apt: chunked encoding bug



Attached is a test case for this apt bug.

There is a tar file with the following files in it.

sources.list             The sources.list file that I used.

works/                   A directory of a test case that works.

   console.txt           The output on the console of 'apt-get update'.

   localhost:8080.w1.dat The first request that apt-get made to my
                         logging proxy.

   localhost:8080.r1.dat The first reply that apt-get got from my
                         logging proxy.  This is the interesting file.

   localhost:8080.w2.dat The second request that apt-get made to my
                         logging proxy.

   localhost:8080.r2.dat The second reply that apt-get got from my
                         logging proxy.

   extracted.dat         The data manually extracted from the 1st reply.
                         Run 'gunzip -c' on this and see the contents.

fails/                   A directory of a test case that failed.  This
                         contains the same files as described above.


If you look at fails/localhost:8080.r1.dat you will see that at the
end of one chunk and the beginning of the next there is the following:

... data ...^M
122^M
^M^V... more data ...

There is a ^M character at the start of the chunk.  This does not
happen in the works/localhost:8080.r1.dat file because the chunk is
one byte longer so you get:

... data ...^M^M
123^M
^V... more data ...

Both files are validly chunked and both contain the same data but
apt-get can only read one of them.


I hope that this is clear enough, if you need more information then
please contact me.

Attachment: apt-test.tar.gz
Description: test case

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

Reply to: