RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1504565 - API schema generated by server doesn't follow language requested by client.
Summary: API schema generated by server doesn't follow language requested by client.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-20 08:35 UTC by Ming Davies
Modified: 2020-12-14 10:35 UTC (History)
7 users (show)

Fixed In Version: ipa-4.6.4-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:57:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3187 0 None None None 2018-10-30 10:58:17 UTC

Description Ming Davies 2017-10-20 08:35:03 UTC
Description of problem:
An RHEL7.4 IPA client displays IPA outputs one day in English, the next in Chinese.

locale on both IPA servers are:
***********IPA server which returns Chinese output************
[# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


***********IPA server which returns English output************
# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=


Customer has attempted to remove the  ~/.cache/ipa folder on the IPA client but still cannot display the outputs at a will.

Version-Release number of selected component (if applicable):
The customer has a mixed version of IPA servers. The IPA server returning Chinese output is running IPA4.5, the IPA server returning English output is running IPA5.0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Petr Vobornik 2017-11-07 09:18:38 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7238

Comment 5 Florence Blanc-Renaud 2018-02-20 08:48:46 UTC
Fixed upstream

master:
    6c5a746 Fixing translation problems

ipa-4-6:
    924e97c Fixing translation problems


ipa-4-5:
    ed5087f Fixing translation problems

Comment 9 Mohammad Rizwan 2018-08-28 11:29:16 UTC
version:
ipa-server-4.6.4-6.el7.x86_64

Steps:
1. Install IPA

2. list available locale
   $ localectl list-locales

3. set LANG with the local from the list

4. run ipa-command e.x $ ipa user-find

5. restore original locale

Actual result:

[root@vm-idm-006 ~]# export LANG=zh_CN.UTF-8
[root@vm-idm-006 ~]# 
[root@vm-idm-006 ~]# ipa user-find
-------
已匹配1个用户
-------
  用户登录名: admin
  姓: Administrator
  主目录: /home/admin
  登录shell: /bin/bash
  主体别名: admin
  UID: 196400000
  GID: 196400000
  禁用账户: False
--------
返回的条目数 1
--------

[root@vm-idm-006 ~]# export LANG=fr_FR.utf8
[root@vm-idm-006 ~]# ipa user-find
---------------------------
1 utilisateur correspondant
---------------------------
  Identifiant de connexion: admin
  Nom: Administrator
  Répertoire personnel: /home/admin
  Interpréteur de commande: /bin/bash
  Principal alias: admin
  UID: 196400000
  GID: 196400000
  Compte désactivé: False
----------------------------
Nombre d'entrées renvoyées 1
----------------------------

[root@vm-idm-006 ~]# export LANG=en_US.UTF-8
[root@vm-idm-006 ~]# 
[root@vm-idm-006 ~]# ipa user-find
--------------
1 user matched
--------------
  User login: admin
  Last name: Administrator
  Home directory: /home/admin
  Login shell: /bin/bash
  Principal alias: admin
  UID: 196400000
  GID: 196400000
  Account disabled: False
----------------------------
Number of entries returned 1
----------------------------



Hence based on above observations and comment#8, marking the bug as verified.

Comment 11 errata-xmlrpc 2018-10-30 10:57:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3187


Note You need to log in before you can comment on or make changes to this bug.