get_endpoint returns URL where it should return None
Bug #1616720 reported by
Jamie Lennox
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Fix Released
|
High
|
Jamie Lennox |
Bug Description
When you call get_endpoint on an auth plugin and no endpoint is available it is supposed to return None. With the patch [1] we do a urljoin() to allow for relative endpoints to be joined with the url that the discovery request was made to. This concept is fine but if you urljoin the expected None return value with the url urljoin returns the original url.
eg urljoin('http://
Because we always urljoin when doing version discovery this means that a URL is always being returned ever when one shouldn't be. This is breaking keystonemiddleware and anything else doing proper version discovery.
Changed in keystoneauth: | |
importance: | Undecided → High |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/360209
Review: https:/