Cannot modify username for a user
Bug #918997 reported by
Adrian Moya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
Gabriel Hurley |
Bug Description
Edit user popup windows says: "From here you can edit users by changing their USERNAMES, emails, passwords, and tenants."
But no field for updating the username is provided.
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
importance: | Undecided → Low |
milestone: | none → essex-4 |
Changed in horizon: | |
assignee: | nobody → Nebula (nebula) |
Changed in horizon: | |
assignee: | Nebula (nebula) → Emma Grace Steimann (emmasteimann) |
Changed in horizon: | |
assignee: | Emma Grace Steimann (emmasteimann) → Gabriel Hurley (gabriel-hurley) |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | essex-4 → 2012.1 |
To post a comment you must log in.
Hello,
regarding this ticket, I have several comments on it(before maybe trying to fix it).
1. As I understand the problem here is that the popup label is wrong - the 'username' SHOULD NOT be edited. It is a read-only field along with user_id.
So maybe it needs to be just dropped from the text, and to leave it as :
"From here you can edit users by changing their emails, passwords, and tenants".
Or maybe ", and default tenant", as this is the actual behavior.
2. Maybe it is a good idea to add the 'name' of the user as a readonly field, as the user_id. See the attachment for an example. At least it is good to see the username when editing.
There is something strange here. I am using devstack setup, and for me the 'update_email' function is not working.
def update_email(self, user, email):
" email": email}}
"""
Update email
"""
# FIXME(ja): why do we have to send id in params and url?
params = {"user": {"id": base.getid(user),
return self._update( "/users/ %s" % base.getid(user), params, "user")
This is the function in python- keystoneclient, where self._update is :
def _update(self, url, body, response_key=None): class(self, body[response_key])
resp, body = self.api.put(url, body=body)
# PUT requests may not return a body
if body:
return self.resource_
an actual *PUT* request.
But, as I see in keystone/ keystone/ contrib/ extensions/ admin/osksadm/ __init_ _.py
This supports only POST and not PUT. Maybe this is some configuration error, although I see that the versions in master branch is the same. Should this be files as a separate bug ?