← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1443912] [NEW] Non-translation-friendly formatting of msg string

 

Public bug reported:

 The token controller doesn't adhere to the guidance for string
translations, instead it pre-formats the substitutions into the msg
before raising an exception.


                msg = _('User %(u_id)s is unauthorized for tenant %(t_id)s')
                msg = msg % {'u_id': user_id, 't_id': tenant_id}
                LOG.warning(msg)
                raise exception.Unauthorized(msg)

** Affects: keystone
     Importance: Low
     Assignee: Henry Nash (henry-nash)
         Status: New

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

Title:
  Non-translation-friendly formatting of msg string

Status in OpenStack Identity (Keystone):
  New

Bug description:
   The token controller doesn't adhere to the guidance for string
  translations, instead it pre-formats the substitutions into the msg
  before raising an exception.

  
                  msg = _('User %(u_id)s is unauthorized for tenant %(t_id)s')
                  msg = msg % {'u_id': user_id, 't_id': tenant_id}
                  LOG.warning(msg)
                  raise exception.Unauthorized(msg)

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


Follow ups

References