trungn1992 / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Intolerance to malformed Basic authentication yields 'ValueError: need more than 1 value to unpack' #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Run the attached program which hits a sandbox provided by readytalk.com.

I believe their Basic authorization challenge (401) violates RFC 2617.
Even if that's true, I think httplib2 should be more forgiving.

What is the expected output? 
Continued execution

What do you see instead?
Uncaught exception "ValueError: need more than 1 value to unpack" which
while true is quite a red herring.

What version of the product are you using? On what operating system?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.3 LTS
Release:    10.04
Codename:   lucid

$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib2
>>> httplib2.__copyright__
'Copyright 2006, Joe Gregorio'
>>> httplib2.__version__
'$Rev$'

Also verified on another system, Ubuntu 11.04 and Python 2.7.1+

Please provide any additional information below.

Original issue reported on code.google.com by RJSno...@gmail.com on 10 Nov 2011 at 5:25

Attachments: