← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1674415] Re: keystone exception messages are not translating when locale is passed

 

** Also affects: keystone/ocata
   Importance: Undecided
       Status: New

** Changed in: keystone/ocata
       Status: New => In Progress

** Changed in: keystone/ocata
   Importance: Undecided => Medium

** Changed in: keystone/ocata
     Assignee: (unassigned) => prashkre (prashkre)

-- 
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/1674415

Title:
  keystone exception messages are not translating when locale is passed

Status in OpenStack Identity (keystone):
  Fix Released
Status in OpenStack Identity (keystone) ocata series:
  In Progress

Bug description:
  When user invokes identity API's on an environment with locale being
  passed, keystone.exception messages are not getting translated in case
  of any error messages from identity API.

  From observation, we found error_message at [0] is of type <unicode>
  and in oslo_i18n module [1], it is expecting
  oslo_i18n._message.Message type for translation.

  [0]https://github.com/openstack/keystone/blob/master/keystone/common/wsgi.py#L790
  [1] https://github.com/openstack/oslo.i18n/blob/master/oslo_i18n/_translate.py#L45

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


References