[api] homedoc should return relative URIs or encode version in href-template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Critical
|
Feilong Wang |
Bug Description
This is a snippet of our current JSON homedoc:
```
'rel/queue': {
},
},
},
```
'href-template' is currently presented as an absolute path ('/queues'...). This would leave a well-defined client to append it to the host, yielding:
host/queues/
Giving a 404. The correct path would be:
host/v1/
To fix this, we need to include the "/v1" in the path, e.g.:
'href-template': '/v1/queues/
Changed in marconi: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in marconi: | |
assignee: | nobody → Cindy Pallares (cindy-pallaresq) |
Changed in marconi: | |
assignee: | Cindy Pallares (cindy-pallaresq) → nobody |
Changed in marconi: | |
assignee: | nobody → Francesco Vollero (fvollero) |
description: | updated |
Changed in marconi: | |
milestone: | none → icehouse-1 |
Changed in marconi: | |
assignee: | Francesco Vollero (fvollero) → Fei Long Wang (flwang) |
Changed in marconi: | |
status: | Triaged → In Progress |
Changed in marconi: | |
milestone: | icehouse-1 → icehouse-2 |
Changed in marconi: | |
status: | Fix Committed → Fix Released |
Changed in marconi: | |
milestone: | icehouse-2 → 2014.1 |
Here's some references:
1. http:// www.ietf. org/rfc/ rfc1808. txt (Relative Uniform Resource Locators) /github. com/openstack/ marconi/ blob/master/ marconi/ queues/ transport/ wsgi/v1. py (marconi v1 homedoc)
2. https:/