← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1667951] [NEW] Quota API doesn't return 404 even if passing wrong project_id

 

Public bug reported:

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}}

** Affects: neutron
     Importance: Undecided
     Assignee: Hirofumi Ichihara (ichihara-hirofumi)
         Status: New


** Tags: api

** Changed in: neutron
     Assignee: (unassigned) => Hirofumi Ichihara (ichihara-hirofumi)

** Tags added: api

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1667951

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

Status in neutron:
  New

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}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1667951/+subscriptions


Follow ups