Missing "Optional" information for request params into FWaaS API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Low
|
Yushiro FURUKAWA |
Bug Description
In http://
"Optional" information is missing for request parameters.
* POST v2.0/fw/firewalls
"firewall_
* PUT v2.0/fw/firewalls
"firewall_id" is required and other params should be "Optional".
[How to reproduce]
$ source devstack/openrc admin admin
$ export TOKEN=`openstack token issue| grep ' id ' | get_field 2`
$ neutron firewall-
Created a new firewall_policy:
+------
| Field | Value |
+------
| audited | False |
| description | |
| firewall_rules | |
| id | 5c640f90-
| name | policy1 |
| shared | False |
| tenant_id | 6fe0e915471c4db
+------
$ curl -s -X POST -d '{"firewall":{}}' -H "x-auth-
{
"NeutronError": {
"message": "Failed to parse request. Required attribute 'firewall_
"type": "HTTPBadRequest",
"detail": ""
}
}
$ curl -s -X POST -d '{"firewall"
/fw/firewalls | jq "."
{
"firewall": {
"status": "INACTIVE",
"router_ids": [],
"name": "",
"admin_
"tenant_id": "6fe0e915471c4d
"firewall_
"id": "8e6d05da-
"description": ""
}
}
$ curl -s -X PUT -d '{"firewall":{}}' -H "x-auth-
{
"firewall": {
"status": "INACTIVE",
"router_ids": [],
"name": "fw1",
"admin_
"tenant_id": "6fe0e915471c4d
"firewall_
"id": "b5d0cfb1-
"description": ""
}
}
Changed in openstack-api-site: | |
assignee: | nobody → Yushiro FURUKAWA (y-furukawa-2) |
summary: |
- Request params EXCEPT "firewall_policy_id" should be optional for POST - v2.0/fw/firewalls + Missing "Optional" information for request params into FWaaS API |
description: | updated |
Changed in openstack-api-site: | |
status: | New → Confirmed |
Changed in openstack-api-site: | |
importance: | Undecided → Low |
milestone: | none → liberty |
status: | In Progress → Fix Released |
I've pushed the following patch set.
https:/ /review. openstack. org/#/c/ 248808/