create server api sends location header as bytestring in py3
Bug #1795425 reported by
Chris Dent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Chris Dent |
Bug Description
PEP 3333 points out that request and response headers, inside a WSGI application, should be native strings. That is: whatever `str` is in the version of Python being used: https:/
The create server api returns a location header which is encoded to UTF-8 in python, making it a bytestring in python3. This violates the spec but also leads to issues when testing nova under wsgi-intercept (which removes whatever normalisation most WSGI servers helpfully do for "bad" applications). The issues show up when concatenating the response header with other values, such as base URLs.
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/606967
Review: https:/