On 02.04.06 01:15:12, Chris Lawrence wrote: > On 3/29/06, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > > reopen 354743 = > > thanks > > > > now packages.debian.org is back again and reacts with gzip-compressed > > HTTP answers when asked for them. > > > > Now the answer to the url that reportbug uses > > (http://packages.debian.org/<package>) is a gzip-compressed 302. So the > > HTTPRedirectHandler jumps in and fetches the given url (which points to > > the cgi-perl-script doing the actual search). This handle however > > doesn't ask packages.d.o for a compressed response and thus the response > > is plain text. But reportbug still thinks its compressed and thus tries > > to decompress the plain text message which of course fails with an > > IOError. > > > > There are 2 solutions to this: > > > > 1. The easiest: Turn off the Accept-Encoding line in urlutils.py:urlopen > > > > 2. find out why reportbug doesn't get that the real response is not > > gzipped anymore and fix it. > > > > I had a quick look for 2 but I couldn't find anything besides that the > > error happens when the page returned is read(). > > I still can't duplicate this problem here. There is an unrelated bug > in the package version checking that I just fixed, but reading the > resulting page doesn't result in any problems here. I tested with > both Python 2.3 and 2.4. > > Maybe packages.debian.org redirects somewhere different for requests > from Europe? Here, it maps to > http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=reportbug, > which doesn't send a compressed response.
Hmm, I think I have an idea where the compression might come from. Let me check that tonight and I'll close the bug if it's true with a proper explanation. Andreas -- It may or may not be worthwhile, but it still has to be done.
pgpreveQGIKn6.pgp
Description: PGP signature