Activity log for bug #1674415

Date Who What changed Old value New value Message
2017-03-20 16:35:24 prashkre bug added bug
2017-03-20 16:48:51 prashkre 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"}} 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"}}
2017-03-20 16:49:08 prashkre bug added subscriber Divya K Konoor
2017-03-20 16:49:32 prashkre bug added subscriber Matthew Edmonds
2017-03-20 16:52:49 prashkre summary keystone exception messages are not translating when locale is set keystone exception messages are not translating when locale is passed
2017-03-20 17:03:47 prashkre 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"}} 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
2017-03-20 20:31:42 Lance Bragstad keystone: importance Undecided Medium
2017-03-20 20:31:49 Lance Bragstad keystone: status New Triaged
2017-03-24 18:11:19 OpenStack Infra keystone: status Triaged In Progress
2017-03-24 18:11:19 OpenStack Infra keystone: assignee prashkre (prashkre)
2017-03-24 22:52:15 OpenStack Infra keystone: status In Progress Fix Released
2017-03-27 13:35:23 Lance Bragstad keystone: milestone pike-1
2017-03-27 13:43:01 Lance Bragstad nominated for series keystone/ocata
2017-03-27 13:43:01 Lance Bragstad bug task added keystone/ocata
2017-03-27 13:43:19 Lance Bragstad keystone/ocata: status New In Progress
2017-03-27 13:43:22 Lance Bragstad keystone/ocata: importance Undecided Medium
2017-03-27 13:43:39 Lance Bragstad keystone/ocata: assignee prashkre (prashkre)
2017-03-28 18:09:12 OpenStack Infra keystone/ocata: status In Progress Fix Committed