Bug#354713: Bug#354743: rebortbug: crashes with IOError: Not a gzipped file

2006-03-04 Thread Andreas Pakulat
On 01.03.06 20:18:16, Chris Lawrence wrote:
 On 3/1/06, Andreas Pakulat [EMAIL PROTECTED] wrote:
  On 01.03.06 17:52:25, Chris Lawrence wrote:
   I can't duplicate this problem here; perhaps it was an intermittent
   problem with bugs.debian.org
 
  No it's not.

Hi,

I got around writing a small test app to open
packages.debian.org/reportbug the same way reportbug doesn. However it
worked, I then tried with reportbug and it worked too. 

Seems like indeed it was an interim problem with pdo.debian.net I
don't get any gzipped pages anymore from the debian servers that
reportbug accesses.

Thus I'm closing this bug-report. Thanks for your help.

Andreas

-- 
What happened last night can happen again.


pgp3v9dNFoKwO.pgp
Description: PGP signature


Bug#354713: Bug#354743: rebortbug: crashes with IOError: Not a gzipped file

2006-03-02 Thread Andreas Pakulat
On 01.03.06 20:18:16, Chris Lawrence wrote:
 On 3/1/06, Andreas Pakulat [EMAIL PROTECTED] wrote:
  On 01.03.06 17:52:25, Chris Lawrence wrote:
   I can't duplicate this problem here; perhaps it was an intermittent
   problem with bugs.debian.org
 
  No it's not.
 
   or you have proxy issues...
 
  No proxy here.
 
 Strange.
 
 What's even weirder is I can't get bugs.debian.org or p.d.o to send me
 anything that's compressed in the first place using either reportbug
 or curl... which brings me back to the idea of a proxy--perhaps a
 *transparent* one that you're not aware of--on a router between you
 and bugs.debian.org.
 
 (For example, try 'curl --compressed -v http://www.debian.org/Bugs/' -
 on my box, I don't get any compression whatsoever.)

We're getting to it :-) The curl creates a compressed response on my
sid-box. However it doesn't do it on my sarge-box. The latter is in the
same LAN, it's the router here that sits before the UMTS-modem. That
one get's a normal text/html...

I still don't think it's a proxy here, because the first 2 requests
work, but the last one to pdo.debian.org is somehow uncompressed already
when gzip wants to uncompress it (See my other mail).

Ha, now I got at least something: curl from stable get's text/html while
unstable's curl get's gzip'ed text/html. So at least for curl it seems
that apache differentiates between the various versions.

BTW: reportbug from the sarge-box right next to me works, so this is
not a proxy problem, or that proxy knows which reportbug talks to him.
Because I tried to send the same UA_STR with unstables reportbug and
it's still the same problem. 

I'll try to reproduce this with a self-written python program on the
weekend if you have no other ideas, because I'm beginning to think this
is a python problem introduced between -3 and -9...

Andreas

-- 
Someone whom you reject today, will reject you tomorrow.


pgpJGI19jygWJ.pgp
Description: PGP signature


Bug#354713: Bug#354743: rebortbug: crashes with IOError: Not a gzipped file

2006-03-02 Thread Andreas Pakulat
On 01.03.06 20:18:16, Chris Lawrence wrote:
 On 3/1/06, Andreas Pakulat [EMAIL PROTECTED] wrote:
  On 01.03.06 17:52:25, Chris Lawrence wrote:
   I can't duplicate this problem here; perhaps it was an intermittent
   problem with bugs.debian.org
 
  No it's not.
 
   or you have proxy issues...
 
  No proxy here.
 
 Strange.

Got some more here: It seems that the problem is the redirect that is
done when getting packages.debian.org/package. I found that
urlutils.urlopen and urlutils.open_url were called only with that URL,
even though the finally returned file-like object (called page in
get_available_versions) returns the following as url [1]:

http://pdo.debian.net/cgi-bin/search_packages.pl?searchon=namesversion=allexact=1keywords=package

So I checked with curl --compress -v http://pdo.debian.net/reportbug and
I got a 302. Now I couldn't find any place in urlutils where you handle
that HTTP code, so I guess this is urllib2. 

The problem then is that the request for the new url (the long one)
doesn't get the Accept-Encoding header, but the result is still put into
a gzip object. I'm still working on a small test app that uses urllib2
to retrieve the page to check wether it really is the culprit... 

Andreas

-- 
You are only young once, but you can stay immature indefinitely.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#354713: Bug#354743: rebortbug: crashes with IOError: Not a gzipped file

2006-03-01 Thread Chris Lawrence
On 3/1/06, Andreas Pakulat [EMAIL PROTECTED] wrote:
 On 01.03.06 17:52:25, Chris Lawrence wrote:
  I can't duplicate this problem here; perhaps it was an intermittent
  problem with bugs.debian.org

 No it's not.

  or you have proxy issues...

 No proxy here.

Strange.

What's even weirder is I can't get bugs.debian.org or p.d.o to send me
anything that's compressed in the first place using either reportbug
or curl... which brings me back to the idea of a proxy--perhaps a
*transparent* one that you're not aware of--on a router between you
and bugs.debian.org.

(For example, try 'curl --compressed -v http://www.debian.org/Bugs/' -
on my box, I don't get any compression whatsoever.)


Chris