project set works for invalid properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Undecided
|
Unassigned | ||
python-openstackclient |
Fix Released
|
Undecided
|
QiangTang |
Bug Description
openstack project set accepts invalid properties, and even somehow sets their values
# openstack project set ABC --property xyz=pqr
# openstack project show ABC
+------
| Field | Value |
+------
| description | |
| domain_id | ef8acb82bebd4c4
| enabled | True |
| id | 315700c2a1384b1
| is_domain | False |
| name | ABC |
| xyz | pqr |
+------
As seen above, the new "xyz" field was created with the specified value. This is not a valid property and should not have been created.
Also, specifying an invalid property without a value did not return an error:
# openstack project set ABC --property QQQ
# openstack project show ABC
+------
| Field | Value |
+------
| description | |
| domain_id | ef8acb82bebd4c4
| enabled | True |
| id | 315700c2a1384b1
| is_domain | False |
| name | ABC |
| xyz | pqr |
+------
openstackclient version = 1.5.0
keystone version = mitaka
description: | updated |
Changed in python-openstackclient: | |
assignee: | nobody → QiangTang (qtang) |
Changed in python-openstackclient: | |
status: | New → In Progress |
Changed in python-openstackclient: | |
status: | In Progress → Fix Released |
This happens because of `extras` i guess.