barbican/barbican/common
Stefan Nica 27cf2f37f6 Fix duplicate paths in secret hrefs
Reconstructing the base URL from a request when
host_href is not set must take into account that
an URL path may consist of and endpoint part followed
by a resource path, e.g.:

'http://localhost/key-manager/v1/secrets/25a24d6b-605e-4226-ab39-7e2d8e10f559'

where the endpoint URL is `http://localhost/key-manager/v1`

The pecan.request.application_url is used instead of
pecan.request.url to retrieve the base URL part
(`http://localhost/key-manager/v1`) excluding the resource
path. However, the /v1 version particle is included into the
application_url value because it is implemented by a wsgi
application rather than a pecan controller, so the /v1 bit
also needs to be removed from the base URL when present.

Change-Id: I3c05f3d2f9a970213ca8347d7bbe1aac203af0a1
Closes-Bug: #1749217
(cherry picked from commit ff55d17034)
2019-08-22 13:59:49 +00:00
..
policies Ensure orders policy-in-code matches controller 2018-07-12 13:36:04 -04:00
__init__.py Files with no code must be left completely empty 2016-11-17 14:19:47 +08:00
accept.py Fix broken gate due to breaking dependency changes 2018-06-01 17:33:51 -05:00
config.py Configure control_exchange to match keystone 2018-04-13 15:53:28 +08:00
exception.py Trivial fix typos 2017-05-31 09:08:40 +07:00
hrefs.py Implement the "check_exc" parameter for OVO 2018-07-15 10:39:12 +07:00
policy.py Remove unused policy enforcer attributes 2018-07-23 08:22:24 +00:00
quota.py Remove unused logging import 2017-02-16 10:33:12 +07:00
resources.py Fix Race Condition in get_or_create_project() 2017-10-22 22:19:26 -04:00
utils.py Fix duplicate paths in secret hrefs 2019-08-22 13:59:49 +00:00
validators.py Remove translation of log messages 2017-06-03 10:18:55 +07:00