Gnocchi dispatcher does not handle resource ids with /
Bug #1500890 reported by
Julien Danjou
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Medium
|
ZhiQiang Fan |
Bug Description
If a resource ID contains a / in its name (e.g. 192.168.
2015-09-29 15:39:25.183 88793 ERROR ceilometer.
<head>
<title>405 Method Not Allowed</title>
</head>
<body>
<h1>405 Method Not Allowed</h1>
The method POST is not allowed for this resource. <br /><br />
</body>
</html>
Changed in ceilometer: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ceilometer: | |
assignee: | nobody → Wen Zhi Yu (yuywz) |
Changed in ceilometer: | |
status: | New → Triaged |
Changed in ceilometer: | |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
no longer affects: | gnocchi |
Changed in ceilometer: | |
assignee: | ZhiQiang Fan (aji-zqfan) → nobody |
Changed in ceilometer: | |
status: | Triaged → Fix Released |
assignee: | nobody → ZhiQiang Fan (aji-zqfan) |
importance: | Undecided → Medium |
milestone: | none → mitaka-1 |
To post a comment you must log in.
Hi Julien,
Sorry I don't understand why resource_id contains '/' will lead to a 405 Error, I found the gnocchi dispatcher will normalize the resource_id in url using urlparse.quote method, see [1]. So the '/' in resource_id will be translated to '%2F'.
[1] https:/ /github. com/openstack/ ceilometer/ blob/master/ ceilometer/ dispatcher/ gnocchi_ client. py#L234