commit 587a1b2ad31934258f252c74ec1df7e202342ed3
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Feb 27 11:58:58 2019 -0800
Fix version selector when for proxy-style URLs
When manila API is served behind a proxy, the
"script_name" in the request can have the proxy
component in it. So, this patch fixes the version
selection logic by looking for the version in the
script name string instead of equivalence.
In addition, this patch adds some missing unit
tests and fixes tests that invoke a mocked
wsgi app for testing request context.
Change-Id: I0363d7174f3d7ddefa8ced59b182faed665e9c36
Partial-Bug: #1815038
Closes-Bug: #1818081
(cherry picked from commit 0d8310ec7a169f6de113080c0cb335247805ee29)
(cherry picked from commit 6b39562c0e0fc44b8f939efb523b2c976c0b210f)
Reviewed: https:/ /review. openstack. org/643765 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=587a1b2ad31 934258f252c74ec 1df7e202342ed3
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 587a1b2ad319342 58f252c74ec1df7 e202342ed3
Author: Goutham Pacha Ravi <email address hidden>
Date: Wed Feb 27 11:58:58 2019 -0800
Fix version selector when for proxy-style URLs
When manila API is served behind a proxy, the
"script_name" in the request can have the proxy
component in it. So, this patch fixes the version
selection logic by looking for the version in the
script name string instead of equivalence.
In addition, this patch adds some missing unit
tests and fixes tests that invoke a mocked
wsgi app for testing request context.
Change-Id: I0363d7174f3d7d defa8ced59b182f aed665e9c36 de113080c0cb335 247805ee29) b8f939efb523b2c 976c0b210f)
Partial-Bug: #1815038
Closes-Bug: #1818081
(cherry picked from commit 0d8310ec7a169f6
(cherry picked from commit 6b39562c0e0fc44