GET a subresource where parent doesn't exist doesn't return 404
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Lucas Alvares Gomes |
Bug Description
GET /nodes/<id>/ports OR /chassis/<id>/nodes will not fail with a 404 in case the <id> does not exist, I think it should cause we are trying to access a subresource of a resource that doesn't not exist.
On chassis:
$ curl -X GET http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 13 100 13 0 0 1219 0 --:--:-- --:--:-- --:--:-- 1300
{
"nodes": []
}
$ curl -X GET http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 156 100 156 0 0 3428 0 --:--:-- --:--:-- --:--:-- 3466
{
"error_
}
On nodes:
$ curl -X GET http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 13 100 13 0 0 1306 0 --:--:-- --:--:-- --:--:-- 1444
{
"ports": []
}
$ curl -X GET http://
% Total % Received % Xferd Average Speed Time Time Time Current
100 153 100 153 0 0 968 0 --:--:-- --:--:-- --:--:-- 974
{
"error_
}
Changed in ironic: | |
importance: | Undecided → Medium |
Changed in ironic: | |
milestone: | none → icehouse-1 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/54742
Review: https:/