← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1265805] [NEW] Empty email for users gets saved as an empty string

 

Public bug reported:

Currently if we create/update a user without an email address using
Horizon, an empty string is stored in the database.

mysql> select name, extra from user;
| test           | {"email": ""}                     |

However, when using the keystone client, no email means storing
'null'/None.

$ keystone user-create --name anothertest --pass test
[...]
mysql> select name, extra from user;
| anothertest    | {"email": null}                   |

We should match the keystone client behaviour, as storing empty strings
is saving incorrect data that may cause issues, particularly with
certain identity backends.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
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/1265805

Title:
  Empty email for users gets saved as an empty string

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Currently if we create/update a user without an email address using
  Horizon, an empty string is stored in the database.

  mysql> select name, extra from user;
  | test           | {"email": ""}                     |

  However, when using the keystone client, no email means storing
  'null'/None.

  $ keystone user-create --name anothertest --pass test
  [...]
  mysql> select name, extra from user;
  | anothertest    | {"email": null}                   |

  We should match the keystone client behaviour, as storing empty
  strings is saving incorrect data that may cause issues, particularly
  with certain identity backends.

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


Follow ups

References