yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33671
[Bug 1464403] [NEW] Update project/domain members doesn't work on user id that has underscores
Public bug reported:
The following JavaScript code that used to get the user id grabs the
part after the last underscore of id_string
horizon/static/horizon/js/horizon.membership.js
get_field_id: function(id_string) {
return id_string.slice(id_string.lastIndexOf("_") + 1);
},
If the user id has underscores in it, the returned value will be
incorrect. For example, if user id is aa_bb, and id_string is
id_update_members_aa_bb, it will return bb instead of aa_bb.
This would cause updating members to fail because the returned id is
invalid.
** 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/1464403
Title:
Update project/domain members doesn't work on user id that has
underscores
Status in OpenStack Dashboard (Horizon):
New
Bug description:
The following JavaScript code that used to get the user id grabs the
part after the last underscore of id_string
horizon/static/horizon/js/horizon.membership.js
get_field_id: function(id_string) {
return id_string.slice(id_string.lastIndexOf("_") + 1);
},
If the user id has underscores in it, the returned value will be
incorrect. For example, if user id is aa_bb, and id_string is
id_update_members_aa_bb, it will return bb instead of aa_bb.
This would cause updating members to fail because the returned id is
invalid.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1464403/+subscriptions
Follow ups
References