glanceclient: following redirects is broken

Bug #1208614 reported by justinsb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Unassigned

Bug Description

When the glanceclient gets a 302 redirect, it does this:

         return self._http_request(resp['location'], method, **kwargs)

(glanceclient/common/http.py line 235.)

But, __getattr__ is not defined on the httplib response object. It should do this:

           return self._http_request(resp.getheader('location'), method, **kwargs)

Not sure how this happened - did we swap out the http library? Should we use an http library that is capable of following redirects?

affects: glance → python-glanceclient
Changed in python-glanceclient:
assignee: nobody → Cindy Pallares (cindy-pallaresq)
Changed in python-glanceclient:
assignee: Cindy Pallares (cindy-pallaresq) → nobody
Revision history for this message
Cindy Pallares (cpallares) wrote :
Changed in python-glanceclient:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.