← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1176797] Re: TypeError happens during the Internationalization of Keystone

 

** Changed in: keystone
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1176797

Title:
  TypeError happens during the Internationalization of  Keystone

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  Add method message = () in the classes  of the /opt/stack/keystone/keystone/exception.py file
  Produce the *.pot, *.po, *.mo files with pygettext, msgfmt commands and add the translation information.

  /v2.0/tokens
  with the authentication information
  post different wrong or null as username and password and observe the returned message.

  ERROR [keystone.common.wsgi] unsupported operand type(s) for %: 'NoneType' and 'dict'
  Traceback (most recent call last):
  File "/opt/stack/keystone/keystone/common/wsgi.py", line 236, in __call__
  result = method(context, **params)
  File "/opt/stack/keystone/keystone/token/controllers.py", line 79, in authenticate
  context, auth)
  File "/opt/stack/keystone/keystone/token/controllers.py", line 285, in _authenticate_local
  domain_id=DEFAULT_DOMAIN_ID)
  File "/opt/stack/keystone/keystone/common/manager.py", line 47, in _wrapper
  return f(*args, **kw)
  File "/opt/stack/keystone/keystone/identity/backends/sql.py", line 678, in get_user_by_name
  self._get_user_by_name(user_name, domain_id))
  File "/opt/stack/keystone/keystone/identity/backends/sql.py", line 670, in _get_user_by_name
  raise exception.UserNotFound(user_id=user_name)
  File "/opt/stack/keystone/keystone/exception.py", line 44, in __init__
  message = self._build_message(message, **kwargs)
  File "/opt/stack/keystone/keystone/exception.py", line 64, in _build_message
  return message or self.__doc__ % kwargs
  TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'

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