← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1674415] [NEW] keystone exception messages are not translating when locale is set

 

Public bug reported:

When user invokes identity API's on an environment with locale(other
than default locale en_US) being set, keystone.exception messages are
not getting translated in case of any error messages from identity API.

For example: we are requesting to get list of projects without authtoken
and Accept-Language: de.

curl -g -i --insecure -X GET https://<<hostname>>:5000/v3/projects? -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "Accept-Language: de"
HTTP/1.1 401 Unauthorized
Date: Mon, 20 Mar 2017 14:31:54 GMT
Server: Apache
Vary: X-Auth-Token
x-openstack-request-id: req-63b4b8ae-e8fc-4a6d-9744-cc9bc268c6c2
WWW-Authenticate: Keystone uri="https://<<hostname>>:5000"
Content-Length: 114
Content-Type: application/json

Actual Result:
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}


Expected Result:
{"error": {"message": "Die von Ihnen gestellte Anfrage erfoderdert eine Authentifizierung.", "code": 401, "title": "Unauthorized"}}

** Affects: keystone
     Importance: Undecided
         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/1674415

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

Status in OpenStack Identity (keystone):
  New

Bug description:
  When user invokes identity API's on an environment with locale(other
  than default locale en_US) being set, keystone.exception messages are
  not getting translated in case of any error messages from identity
  API.

  For example: we are requesting to get list of projects without
  authtoken and Accept-Language: de.

  curl -g -i --insecure -X GET https://<<hostname>>:5000/v3/projects? -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "Accept-Language: de"
  HTTP/1.1 401 Unauthorized
  Date: Mon, 20 Mar 2017 14:31:54 GMT
  Server: Apache
  Vary: X-Auth-Token
  x-openstack-request-id: req-63b4b8ae-e8fc-4a6d-9744-cc9bc268c6c2
  WWW-Authenticate: Keystone uri="https://<<hostname>>:5000"
  Content-Length: 114
  Content-Type: application/json

  Actual Result:
  {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

  
  Expected Result:
  {"error": {"message": "Die von Ihnen gestellte Anfrage erfoderdert eine Authentifizierung.", "code": 401, "title": "Unauthorized"}}

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


Follow ups