manila/manila/api
Goutham Pacha Ravi 07c4809940 Fix API version inferred w/ un-versioned URLs
With [1], we fixed the issue with v1 API URLs when
configuring manila with a reverse proxy, like uwsgi.
However, the version discovery can be made against a
"unversioned" URL, i.e, the "/" endpoint.

Example version discovery target when there's no reverse
proxy:

   curl -i -X GET www.openstack-overcloud.com:8786/

Example version discovery target when manila is configured
with a web proxy:

   curl -i -X GET www.openstack-overcloud.com/shared-file-system/

Currently, the API assumes that a v2 endpoint is requested
and hence sets a default API version in the request, which
results in the wrong headers communicated to the client.

Fix this issue. The release note added with [1] should
suffice for this fix.

[1] I0363d7174f3d7ddefa8ced59b182faed665e9c36
Change-Id: I50d1024ee8485b8290c24fa850e60755b518fff3
Closes-Bug: #1818081
(Cherry-picked from commit 5a3be01535)
(Cherry-picked from commit 4b0c953f7f)
2019-03-18 12:10:23 +00:00
..
contrib Port share type extensions to core API 2015-11-12 14:58:20 +00:00
middleware Fix UnicodeDecodeError when decode API input 2018-02-07 06:37:32 +00:00
openstack Fix API version inferred w/ un-versioned URLs 2019-03-18 12:10:23 +00:00
v1 Merge "Fix getting share networks and security services error" 2017-12-18 13:57:24 +00:00
v2 Fix default and detailed share type result not correct 2017-12-22 14:49:07 +00:00
views Add count info in /shares and /shares/detail response 2017-12-13 01:46:17 +00:00
__init__.py Remove enable_v1_api and enable_v2_api config opts 2016-08-23 08:27:22 +02:00
auth.py Remove log translations in api 1/5 2017-03-29 16:55:05 +08:00
common.py Delete limited_by_marker from api/common.py 2017-10-17 14:06:23 +08:00
extensions.py Remove unused functions from api/extensions.py 2017-11-17 18:46:53 +08:00
urlmap.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
versions.py Mark 'v1' API deprecated in the versions response 2017-01-27 14:12:39 +00:00