Created user has no display-name

Bug #1606354 reported by Leo Zhang on 2016-07-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
Medium
Unassigned

Bug Description

Created juju users has no display name.
display-name is set to '' in json format.
Only controller user has display name.

Details:

leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 version
2.0-beta12-xenial-amd64
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 bootstrap lxd-test lxd
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 add-user bob --models default --acl read
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ export JUJU_DATA=~/data
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 register MHgTA2JvYjBFDC5bZmQzNDpkN2ExOjM3MWQ6N2FkZDoyMTY6M2VmZjpmZWVmOmMyOGNdOjE3MDcwExMxMC4xMDkuMjA3LjE1OjE3MDcwBCBIGpyZfO-HupNjy3t8sHuIZ-Y1F-BYTUoU4KR3v9hTLxMIbHhkLXRlc3QAAA==
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 list-users
NAME DISPLAY NAME DATE CREATED LAST CONNECTION
admin admin 7 minutes ago 31 seconds ago
bob 31 seconds ago just now
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ export JUJU_DATA=~/.local/share/juju
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 add-user leo --models default,controller --acl admin
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ export JUJU_DATA=~/data2
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 register MHgTA2xlbzBFDC5bZmQzNDpkN2ExOjM3MWQ6N2FkZDoyMTY6M2VmZjpmZWVmOmMyOGNdOjE3MDcwExMxMC4xMDkuMjA3LjE1OjE3MDcwBCAteo32SgNG_GIE1Vqoyhwytc1ooORq2swwLsBHELNmLBMIbHhkLXRlc3QAAA==
leozhang@leozhang-HP-ENVY-dv6-Notebook-PC:~/juju-ci-tools$ juju-2.0 list-users
NAME DISPLAY NAME DATE CREATED LAST CONNECTION
admin admin 9 minutes ago 1 minute ago
bob 2 minutes ago 2 minutes ago
leo 1 minute ago just now

Aaron Bentley (abentley) wrote :

There are two issue here:
1. Unlike 'admin', other users have no default display name.
2. A missing display name is represented as '', even though both JSON and YAML support a null value.

A program that uses the user data in the obvious way will display the name as '', which is not a good outcome.

Aaron Bentley (abentley) on 2016-07-25
Changed in juju-ci-tools:
status: New → Triaged
importance: Undecided → High
status: Triaged → New
importance: High → Undecided
affects: juju-ci-tools → juju-core
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.0-rc1
Changed in juju-core:
milestone: 2.0-rc1 → 2.0.0
Richard Harding (rharding) wrote :

I think there's a bug in that we don't use display name consistently and it's not useful for much so we should get rid of it until we have a real driven use case.

affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju:
assignee: nobody → Alexis Bruemmer (alexis-bruemmer)
Changed in juju:
milestone: 2.0.0 → 2.1.0
Changed in juju:
assignee: Alexis Bruemmer (alexis-bruemmer) → nobody
tags: added: usability
Changed in juju:
importance: High → Medium
Curtis Hovey (sinzui) on 2017-02-17
Changed in juju:
milestone: 2.1-rc2 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers