Your message dated Tue, 14 Jun 2005 16:02:27 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#309671: fixed in reportbug 3.13
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 May 2005 17:52:16 +0000
>From [EMAIL PROTECTED] Wed May 18 10:52:16 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mx01.qsc.de [213.148.129.14] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DYSiO-00080N-00; Wed, 18 May 2005 10:52:16 -0700
Received: from port-212-202-192-37.dynamic.qsc.de ([212.202.192.37] 
helo=treasure.calvinsplayground.de)
        by mx01.qsc.de with smtp (Exim 3.35 #1)
        id 1DYSht-00042o-00
        for [EMAIL PROTECTED]; Wed, 18 May 2005 19:51:45 +0200
Received: (qmail 30445 invoked by uid 1000); 18 May 2005 17:52:38 -0000
Message-ID: <[EMAIL PROTECTED]>
Content-Type: multipart/mixed; boundary="===============2012497892=="
MIME-Version: 1.0
From: Bastian Kleineidam <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: reportbug: urlutils.py does not handle redirects on Python 2.4
X-Mailer: reportbug 3.12
Date: Wed, 18 May 2005 19:52:37 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============2012497892==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: reportbug
Version: 3.12
Severity: minor
Tags: patch

Hi,

I am using your urlutils.py stuff in LinkChecker and noticed that
redirections are broken when running under Python 2.4:

[...]
File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 396, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 523, in http_error_302
    newurl = headers.getheaders('location')[0]
AttributeError: 'dict' object has no attribute 'getheaders'

An URL that fails is http://de.finance.yahoo.com/robots.txt

The fix is to always use a HTTPMessage object for headers in handler
methods. Attached is a patch which should also work on Python 2.3.

Regards,
  Bastian

-- Package-specific info:
** Environment settings:
EDITOR="fte"
DEBEMAIL="[EMAIL PROTECTED]"

** /home/calvin/.reportbugrc:
reportbug_version "3.11"
mode advanced
ui text
realname "Bastian Kleineidam"
email "[EMAIL PROTECTED]"

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-treasure3
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages reportbug depends on:
ii  python2.3                     2.3.5-3    An interactive high-level object-o

-- no debconf information

--===============2012497892==
Content-Type: text/x-java; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="urlutils_patch.diff"

--- /usr/share/reportbug/urlutils.py    2005-05-11 00:25:32.000000000 +0200
+++ /home/calvin/urlutils.py    2005-05-18 19:45:37.368809628 +0200
@@ -53,7 +53,7 @@
             import gzip
             fp = gzip.GzipFile('', 'rb', 9, StringIO(content))
         # remove content-encoding header
-        headers = {}
+        headers = httplib.HTTPMessage(StringIO.StringIO(""))
         ceheader = re.compile(r"(?i)content-encoding:")
         for h in page.info().keys():
             if not ceheader.match(h):

--===============2012497892==--

---------------------------------------
Received: (at 309671-close) by bugs.debian.org; 14 Jun 2005 20:08:08 +0000
>From [EMAIL PROTECTED] Tue Jun 14 13:08:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DiHhg-000195-00; Tue, 14 Jun 2005 13:08:08 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DiHcB-0008VT-00; Tue, 14 Jun 2005 16:02:27 -0400
From: Chris Lawrence <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#309671: fixed in reportbug 3.13
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 14 Jun 2005 16:02:27 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: reportbug
Source-Version: 3.13

We believe that the bug you reported is fixed in the latest version of
reportbug, which is due to be installed in the Debian FTP archive:

reportbug_3.13.dsc
  to pool/main/r/reportbug/reportbug_3.13.dsc
reportbug_3.13.tar.gz
  to pool/main/r/reportbug/reportbug_3.13.tar.gz
reportbug_3.13_all.deb
  to pool/main/r/reportbug/reportbug_3.13_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lawrence <[EMAIL PROTECTED]> (supplier of updated reportbug package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 14 Jun 2005 14:47:22 -0500
Source: reportbug
Binary: reportbug
Architecture: source all
Version: 3.13
Distribution: unstable
Urgency: low
Maintainer: Chris Lawrence <[EMAIL PROTECTED]>
Changed-By: Chris Lawrence <[EMAIL PROTECTED]>
Description: 
 reportbug  - reports bugs in the Debian distribution
Closes: 299425 309671 309717 310723 310856 313403 313421 313516
Changes: 
 reportbug (3.13) unstable; urgency=low
 .
   * Fix redirects in urlutils under Python 2.4.  (Closes: #309671)
   * Really quit when using 'q' at editor prompt.  (Closes: #299425, #313516)
   * Skip vi nag if in template mode.  (Closes: #309717)
   * Fix grammar in "specify bug by number" message in querybts.
     (Closes: #310723)
   * Fix crash when bug control file contains both submit-as and
     report-with lines.  (Closes: #313403)
   * Include status for recommended packages as well.  (Closes: #310856)
   * Add support for including status of packages that aren't dependencies.
     (Closes: #313421)
Files: 
 a9c7e8f6dd80377d9e8ab31e2b4b5f8d 522 utils standard reportbug_3.13.dsc
 f62a3783e4650bab4d332d003f52ccfd 134676 utils standard reportbug_3.13.tar.gz
 a44cdc7f547926fc73e68e6a870ffbfe 125832 utils standard reportbug_3.13_all.deb

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

iD8DBQFCrzXZ2wQKE6PXubwRAk82AJ9e6yMRZYwILIkewA13RWwJ14IT/wCeJlhO
eT90JcfvtKQzcxhSqcuP7sw=
=eKxu
-----END PGP SIGNATURE-----


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

Reply via email to