← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1558690] [NEW] project set works for invalid properties

 

Public bug reported:

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   | ef8acb82bebd4c4abdc6b2056440b596 |
| enabled     | True                             |
| id          | 315700c2a1384b1ca21543504e3513bb |
| 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   | ef8acb82bebd4c4abdc6b2056440b596 |
| enabled     | True                             |
| id          | 315700c2a1384b1ca21543504e3513bb |
| is_domain   | False                            |
| name        | ABC                              |
| xyz         | pqr                              |
+-------------+----------------------------------+

** Affects: keystone
     Importance: Undecided
         Status: New

** Affects: python-openstackclient
     Importance: Undecided
         Status: New

** Also affects: keystone
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1558690

Title:
  project set works for invalid properties

Status in OpenStack Identity (keystone):
  New
Status in python-openstackclient:
  New

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   | ef8acb82bebd4c4abdc6b2056440b596 |
  | enabled     | True                             |
  | id          | 315700c2a1384b1ca21543504e3513bb |
  | 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   | ef8acb82bebd4c4abdc6b2056440b596 |
  | enabled     | True                             |
  | id          | 315700c2a1384b1ca21543504e3513bb |
  | is_domain   | False                            |
  | name        | ABC                              |
  | xyz         | pqr                              |
  +-------------+----------------------------------+

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


Follow ups