← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1573479] Re: Users email can not delete by updating user

 

Reviewed:  https://review.openstack.org/492286
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a9517ff6151be22a4aa5dccd8389b358f591a92b
Submitter: Jenkins
Branch:    master

commit a9517ff6151be22a4aa5dccd8389b358f591a92b
Author: Lucas H. Xu <xuh@xxxxxx>
Date:   Wed Aug 9 16:30:46 2017 -0400

    Fix cannot delete user's email addresses in the identity/user panel
    
    How to reproduce the bug:
    
    P.S. Using the horizon master(pike) codebase
    
    1) Login as an admin user
    2) Click Identity and go to the Users panel
    3) Create a user and put an email address with that user
    4) Then edit this user to clear the email address.
    5) Update the user and even though we have a green  banner(successful)
    show up, the email address still viewable and do not disappear.
    
    Closes Bug: #1573479
    
    Change-Id: I0273d0c6d885c77f1f74bdc2ae6674d1e6539ac0


** Changed in: horizon
       Status: In Progress => Fix Released

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

Title:
  Users email can not delete by updating user

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Environment:  Kilo build

  Steps:
  1) Login using admin
  2) Click Identity -> Users
  3)  Create a user with email address input.
  4) Then edit this user to let the email para as empty which want to remove original email .
  5) But after this update, the email address still exist. 

  Expected Result: Email address should be removed by this update action

  Also tried with the keystone command, it can successfully remove the
  email:

  1. Create user with an email using Identity API v2: 
  # keystone --os-identity-api-version 2.0 user-create --name testv2 --email testv2@xxxxxxx
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |          testv2@xxxxxxx          |
  | enabled  |               True               |
  |    id    | 6cde253f2e4c474993d78a70e21886ab |
  |   name   |              testv2              |
  | username |              testv2              |
  +----------+----------------------------------+

  2. Update user to remove the email using Identity API v2: 
  # keystone --os-identity-api-version 2.0 user-update --name testv2new --email "" testv2
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  User has been updated.

  Then run command to verify, the email address has been removed.
  # keystone --os-identity-api-version 2.0 user-get testv2new
  /usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
    'python-keystoneclient.', DeprecationWarning)
  +----------+----------------------------------+
  | Property |              Value               |
  +----------+----------------------------------+
  |  email   |                                  |
  | enabled  |               True               |
  |    id    | 6cde253f2e4c474993d78a70e21886ab |
  |   name   |            testv2new             |
  | username |            testv2new             |
  +----------+----------------------------------+

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


References