Package: python2.6
Version: 2.6.6-10
Severity: normal

Class AbstractBasicAuthHandler in urllib2.py contain incorrect code. It can
authenticate only 6 urls. I suggest to use this patch from python2.7 urllib.py:

--- /home/mike/urllib2.py       2011-05-31 22:56:28.186386906 +0400
+++ /usr/lib/python2.6/urllib2.py       2011-05-31 22:58:01.746386196 +0400
@@ -839,7 +839,10 @@
             if mo:
                 scheme, quote, realm = mo.groups()
                 if scheme.lower() == 'basic':
-                    return self.retry_http_basic_auth(host, req, realm)
+                    response = self.retry_http_basic_auth(host, req, realm)
+                    if response and response.code != 401:
+                        self.retried = 0
+                    return response

     def retry_http_basic_auth(self, host, req, realm):
         user, pw = self.passwd.find_user_password(realm, host)



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python2.6 depends on:
ii  libbz2-1.0                    1.0.5-6    high-quality block-sorting file co
ii  libc6                         2.13-4     Embedded GNU C Library: Shared lib
ii  libdb4.8                      4.8.30-8   Berkeley v4.8 Database Libraries [
ii  libexpat1                     2.0.1-7    XML parsing C library - runtime li
ii  libncursesw5                  5.9-1      shared libraries for terminal hand
ii  libreadline6                  6.2-2      GNU readline and history libraries
ii  libsqlite3-0                  3.7.6.3-1  SQLite 3 shared library
ii  mime-support                  3.51-1     MIME files 'mime.types' & 'mailcap
ii  python2.6-minimal             2.6.6-10   A minimal subset of the Python lan

python2.6 recommends no packages.

Versions of packages python2.6 suggests:
ii  binutils              2.21.51.20110523-1 The GNU assembler, linker and bina
ii  python2.6-doc         2.6.6-10           Documentation for the high-level o
pn  python2.6-profiler    <none>             (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to