TypeError Running with Python 3.5

Bug #1675553 reported by Dave McCowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
High
Dave McCowan

Bug Description

When running with Python 3.5, I receive the following traceback:

2017-03-23 12:35:45.230 INFO barbican.api.middleware.context [b'req-4a991d89-8efa-4635-86ff-2783268bc4a4' None None] Processed request: 200 OK - GET http://127.0.0.1:9311/v1/secrets?offset=0&limit=2
2017-03-23 12:35:45.231 CRITICAL barbican [b'req-4a991d89-8efa-4635-86ff-2783268bc4a4' None None] TypeError: http header value must be a string

2017-03-23 12:35:45.231 TRACE barbican Traceback (most recent call last):
2017-03-23 12:35:45.231 TRACE barbican File "/usr/local/lib/python3.5/dist-packages/paste/urlmap.py", line 216, in __call__
2017-03-23 12:35:45.231 TRACE barbican return app(environ, start_response)
2017-03-23 12:35:45.231 TRACE barbican File "/usr/local/lib/python3.5/dist-packages/webob/dec.py", line 144, in __call__
2017-03-23 12:35:45.231 TRACE barbican return resp(environ, start_response)
2017-03-23 12:35:45.231 TRACE barbican File "/usr/local/lib/python3.5/dist-packages/webob/response.py", line 1055, in __call__
2017-03-23 12:35:45.231 TRACE barbican start_response(self.status, headerlist)
2017-03-23 12:35:45.231 TRACE barbican TypeError: http header value must be a string
2017-03-23 12:35:45.231 TRACE barbican
{

Changed in barbican:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Dave McCowan (dave-mccowan)
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to barbican (master)

Fix proposed to branch: master
Review: https://review.openstack.org/449323

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/449323
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=672d57917cbb2ba8b5695e737ecb145d5e0325a2
Submitter: Jenkins
Branch: master

commit 672d57917cbb2ba8b5695e737ecb145d5e0325a2
Author: Dave McCowan <email address hidden>
Date: Thu Mar 23 16:55:12 2017 -0400

    Fix TypeError with Python 3.5

    Python 3.5 libraries expect HTTP headers to be of string
    type, not bytes. Python 2.7 doesn't care. This patch
    changes the type of a headers from bytes to string.

    Change-Id: I22a57d6a7b390ada712fed3b40f00510229c253d
    Closes-bug: #1675553

Changed in barbican:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/barbican 5.0.0.0b1

This issue was fixed in the openstack/barbican 5.0.0.0b1 development milestone.

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.