Quota API doesn't return 404 even if passing wrong project_id

Bug #1667951 reported by Hirofumi Ichihara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Hirofumi Ichihara

Bug Description

Quota /v2.0/quotas/project_id API doesn't return 404 even if wrong project_id is passed. It just returns default value when wrong id is passed.

$ curl -g -i -X GET http://127.0.0.1:9696/v2.0/quotas/hoge.json -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: $TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 171
X-Openstack-Request-Id: req-0f02be6a-3d7e-4638-863b-2118b5febe58
Date: Sat, 25 Feb 2017 16:59:02 GMT

{"quota": {"subnet": 10, "network": 10, "floatingip": 50, "subnetpool": -1, "security_group_rule": 100, "security_group": 10, "router": 10, "rbac_policy": 10, "port": 50}}

Tags: api
Changed in neutron:
assignee: nobody → Hirofumi Ichihara (ichihara-hirofumi)
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/438335

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Hirofumi Ichihara (<email address hidden>) on branch: master
Review: https://review.openstack.org/438335
Reason: Quota itself doesn't manage if project_id is valid. This is not bug.

Changed in neutron:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.