yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46870
[Bug 1535626] Re: Neutron should verify attributes inside a dict
https://review.openstack.org/#/c/269540/
** Changed in: python-neutronclient
Status: New => Confirmed
** Also affects: neutron
Importance: Undecided
Status: New
** Changed in: python-neutronclient
Status: Confirmed => Invalid
** Changed in: neutron
Status: New => Invalid
** Changed in: python-neutronclient
Assignee: Bo Chi (bochi-michael) => (unassigned)
** Changed in: neutron
Assignee: (unassigned) => Bo Chi (bochi-michael)
** Changed in: neutron
Importance: Undecided => Low
** Changed in: neutron
Status: Invalid => Confirmed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1535626
Title:
Neutron should verify attributes inside a dict
Status in neutron:
Confirmed
Status in python-neutronclient:
Invalid
Bug description:
Currently Neutron did not verify the attributes inside a dict, for
exp:
If following body is send to neutron server for router-update, no error will show
'{"router": {"external_gateway_info": {"network_id": "b92781fe-2d31-49a6-b648-98d937faf0b8", "wrong": true}}}'
There's a wrong attribute in which is named "wrong"
while the correct body is
'{"router": {"external_gateway_info": {"network_id": "b92781fe-2d31-49a6-b648-98d937faf0b8", "external_fixed_ips": [{"subnet-id": "7ebd8fc9-def1-47f1-97e0-e28c51dc591c"}]}}}'
The solution is to add verify_attributes(data, key_specs) in
_validate_dict()
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1535626/+subscriptions