Redirected request does not take into consider this scenario: from https//:abc.com to http//:def.com
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-heatclient |
In Progress
|
Low
|
huangtianhua |
Bug Description
when the requests is redirected from https//:Public_ip to http://
endpoint.lower() , then it will raise InvalidEndpoint with msg of "Prohibited endpoint redirect ..."
heatclient/
def strip_endpoint(
if location is None:
message = "Location not returned with 302"
raise exc.InvalidEndp
elif location.
return location[
else:
message = "Prohibited endpoint redirect %s" % location
raise exc.InvalidEndp
one specific example:
[root@MINE common]#heat --os-cacert ~/server.crt --ca-file ~server.crt --debug stack-show stack7
location: http://
date: Sat, 25 Oct 2014 05:42:51 GMT
content-type: text/plain; charset=UTF-8
x-openstack-
302 Found
The resource was found at http://
Traceback (most recent call last):
File "/usr/bin/heat", line 10, in <module>
sys.
File "/usr/lib/
HeatShell(
File "/usr/lib/
args.
File "/usr/lib/
stack = hc.stacks.
File "/usr/lib/
resp, body = self.client.
File "/usr/lib/
resp = self._http_
File "/usr/lib/
path = self.strip_
File "/usr/lib/
raise exc.InvalidEndp
heatclient.
=========
[root@MINE common]# keystone --os-cacert ~/server.crt endpoint-list |grep 8004
| dd3c51b529ae41a
Changed in python-heatclient: | |
assignee: | nobody → Jun Xie (junxiebj) |
Changed in python-heatclient: | |
importance: | Undecided → Low |
Changed in python-heatclient: | |
assignee: | Jun Xie (junxiebj) → huangtianhua (huangtianhua) |
Fix proposed to branch: master /review. openstack. org/130925
Review: https:/