extra_specs should not allow a key '=123'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
jichenjc |
Bug Description
[root@controller ~]# nova flavor-key 21 set =984 =1231
[root@controller ~]# nova flavor-show 21
+------
| Property | Value |
+------
| name | m2.test4 |
| ram | 512 |
| OS-FLV-
| vcpus | 1 |
| extra_specs | {u'': u'1231', u'nec1': u''} |
| swap | 512 |
| os-flavor-
| rxtx_factor | 1.0 |
| OS-FLV-
| disk | 1 |
| id | 21 |
+------
which indicates a key = NULL existing
Changed in nova: | |
assignee: | nobody → jichencom (jichenjc) |
tags: | added: api |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Yes we really should be doing a lot more filtering at the API level. Have to be careful to retain backwards compatibility for the V2 API though which largely means we can only fix this for the v3 api.