Versions links are wrong when behind a proxy changing path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
New
|
Undecided
|
Unassigned |
Bug Description
When behind a proxy changing the path to the Blazar API, the links returned in the versions response are incorrect. This is the case with the default DevStack configuration which uses the ProxyPass directive.
$ http GET http://
HTTP/1.1 300 Multiple Choices
Connection: close
Content-Type: application/json
Date: Wed, 11 Sep 2019 12:52:13 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5
Transfer-Encoding: chunked
{
"versions": [
{
"id": "v1.0",
{
}
],
},
{
"id": "v2.0",
{
}
],
}
]
}
The links should be to http://
Keystone and Glance both have a `public_endpoint` configuration value which they use to build the correct URL.
Check if this could be fixed with:
[oslo_middleware] proxy_headers_ parsing = True
enable_