[issue15701] AttributeError from HTTPError when using digest auth

2014-03-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 361c10d06b9c by R David Murray in branch 'default':
whatsnew: HTTPError.headers (#15701).
http://hg.python.org/cpython/rev/361c10d06b9c

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-12-23 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3046bfea59f3 by Senthil Kumaran in branch '2.7':
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to 
return headers correctly
http://hg.python.org/cpython/rev/3046bfea59f3

New changeset 919ebf74bfdb by Senthil Kumaran in branch '3.2':
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to 
return headers correctly
http://hg.python.org/cpython/rev/919ebf74bfdb

New changeset a15109398294 by Senthil Kumaran in branch '3.3':
merge from 3.2
http://hg.python.org/cpython/rev/a15109398294

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-12-23 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Okay. this is fixed in all versions of python. Sorry for the delay.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-12-10 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Even though 2.x is in security fix mode, this can be fixed by a overriding the 
base class's info method in the HTTPError class and returning the .hdrs 
attribute instead of .headers.

--
Added file: http://bugs.python.org/file28273/Issue1571.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ad1c1164f68b by Senthil Kumaran in branch 'default':
Fix Issue15701 : add .headers attribute to urllib.error.HTTPError
http://hg.python.org/cpython/rev/ad1c1164f68b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-12-07 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
keywords: +patch
versions: +Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28238/issue15701.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-08-31 Thread Berker Peksag

Berker Peksag added the comment:

Python 2.6 is now in security-fix-only mode.

--
components: +Library (Lib)
nosy: +berker.peksag
versions: +Python 2.7 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-08-31 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Okay, this is funny. first info is invoking addinfourl of urllib, which would 
return headers. But in urllib2, the headers are self.hdrs

I would side with the documentation that info is advertised method for 
HTTPError object. In 2.7,  I guess just docs could be improved. This problem 
would be the present in 3.x.

--
assignee:  - orsenthil
nosy: +orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15701] AttributeError from HTTPError when using digest auth

2012-08-16 Thread Jody McIntyre

New submission from Jody McIntyre:

I attempted to connect to a site using urllib2 and digest authentication and it 
raised an HTTPError (due to an incorrect username and password, which is 
expected).  I attempted to run the info() method of the HTTPError to get more 
information, but it failed with an AttributeError (this is the bug).

$ ./reproducer.py 
Traceback (most recent call last):
  File ./reproducer.py, line 16, in module
print e.info()
  File /usr/lib/python2.6/urllib.py, line 987, in info
return self.headers
AttributeError: 'HTTPError' object has no attribute 'headers'

$ python --version
Python 2.6.6

--
files: reproducer.py
messages: 168407
nosy: scjody
priority: normal
severity: normal
status: open
title: AttributeError from HTTPError when using digest auth
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file26864/reproducer.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15701
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com