When the API Prefix is used in a Flask API, it is possible the flask
view argument specification will bleed through to the self link instead
of a properly formated url.
The add_self_reference_links mechanism in keystone.server.flask.common
now substitutes out the self link to the {} substitution and applies
a .format() utilizing the view args to the URI in the self link.
Reviewed: https:/ /review. openstack. org/606195 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=1efecc92c09 d5f691fac1e9373 ff123b549ced39
Committed: https:/
Submitter: Zuul
Branch: master
commit 1efecc92c09d5f6 91fac1e9373ff12 3b549ced39
Author: Morgan Fainberg <email address hidden>
Date: Fri Sep 28 13:08:37 2018 -0700
Properly replace flask view args in links
When the API Prefix is used in a Flask API, it is possible the flask
view argument specification will bleed through to the self link instead
of a properly formated url.
The add_self_ reference_ links mechanism in keystone. server. flask.common
now substitutes out the self link to the {} substitution and applies
a .format() utilizing the view args to the URI in the self link.
Change-Id: Ic5c89c285ed964 de7411b273567bb 97fcf43da06
closes-bug: #1794552