Public bug reported:

A user with name  VM-JLÃW$ is an ldap user. When I run the openstack
role add command it fails as follows.

[root@ip9-114-192-140 ~]# openstack role add admin --project project1—user 
VM-JLÃW$
Traceback (most recent call last):
File "/usr/bin/openstack", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 177, in 
main
argv = map(lambda arg: arg.decode(encoding), argv)
File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 177, in 
<lambda>
argv = map(lambda arg: arg.decode(encoding), argv)
File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 5: invalid 
continuation byte 


[root@ip9-114-192-140 ~]# openstack user list
+-----------------------------------------------------------------+------------+
| ID | Name |
+-----------------------------------------------------------------+------------+

| c297dffba4301deed982828c011c7314ce36f29db82451a911cd4898f3135837 | VM-
JLÃW$ |


When I run the command for same user using userid it works.

openstack role add admin --project project1 --user
c297dffba4301deed982828c011c7314ce36f29db82451a911cd4898f3135837

** Affects: keystone
     Importance: Undecided
     Assignee: Divya K Konoor (dikonoor)
         Status: New

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

Title:
  Unable to perform role assignments for an ldap user with special
  characters in the name

Status in OpenStack Identity (keystone):
  New

Bug description:
  A user with name  VM-JLÃW$ is an ldap user. When I run the openstack
  role add command it fails as follows.

  [root@ip9-114-192-140 ~]# openstack role add admin --project project1—user 
VM-JLÃW$
  Traceback (most recent call last):
  File "/usr/bin/openstack", line 10, in <module>
  sys.exit(main())
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 177, 
in main
  argv = map(lambda arg: arg.decode(encoding), argv)
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 177, 
in <lambda>
  argv = map(lambda arg: arg.decode(encoding), argv)
  File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
  return codecs.utf_8_decode(input, errors, True)
  UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 5: 
invalid continuation byte 

  
  [root@ip9-114-192-140 ~]# openstack user list
  
+-----------------------------------------------------------------+------------+
  | ID | Name |
  
+-----------------------------------------------------------------+------------+

  | c297dffba4301deed982828c011c7314ce36f29db82451a911cd4898f3135837 |
  VM-JLÃW$ |


  When I run the command for same user using userid it works.

  openstack role add admin --project project1 --user
  c297dffba4301deed982828c011c7314ce36f29db82451a911cd4898f3135837

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to