API "links" may end up with the wrong host/port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When enabled_host_header is enabled there is the possibility that the "links" in API responses will get the wrong URL path back.
For example, in a devstack run, a link was rendered:
"links": {
"self": "http://
Where the port used is actually the uwsgi port and not the front end location as published in endpoints: http://
It seems like the api_base_uri is being ignored here and the "requests.host_url" may not be the right information to collect when running behind uwsgi.
This is the method used to generate the "link" host information. (_get_base_url)
https:/