Bug 1257090

Summary: API and CLI Missing users locale setting
Product: Red Hat Satellite Reporter: Peter Vreman <peter.vreman>
Component: HammerAssignee: Tomas Strachota <tstrachota>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney, cwelton, jcallaha, oshtaier
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9114
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:01:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1122832    

Description Peter Vreman 2015-08-26 09:33:05 UTC
Description of problem:
The user locale can be configured over the WebUI, but not over the API or hammer
Also listing the users details over the API does not include the locale field.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Use API to configure users locale to set it to "en"
2. Use Hammer to configure users locale to set it to "en"
3.

Actual results:
Missing locale settings in GET resource
Not possible update locale


Expected results:
All user settings can be retrieved and updated over the API and Hammer. 


Additional info:

Comment 1 Corey Welton 2015-09-22 17:53:03 UTC
Is there a possibility of using LANG= or LC_ALL=, etc., to set locale from shell?

Comment 3 Bryan Kearney 2015-10-15 19:32:54 UTC
Created redmine issue http://projects.theforeman.org/issues/12190 from this bug

Comment 4 Bryan Kearney 2015-10-15 20:02:02 UTC
Upstream bug component is Hammer

Comment 5 Bryan Kearney 2015-10-29 18:58:23 UTC
Connecting redmine issue http://projects.theforeman.org/issues/12190 from this bug

Comment 6 Bryan Kearney 2015-12-18 21:49:26 UTC
Connecting redmine issue http://projects.theforeman.org/issues/9114 from this bug

Comment 7 Bryan Kearney 2015-12-18 21:52:54 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9114 has been closed
-------------
Anonymous
Applied in changeset commit:hammer-cli-foreman|5ff88328df9f4f4484c0db136643c3433f1423d4.

Comment 9 Oleksandr Shtaier 2016-01-14 14:59:49 UTC
Basically, all operations are not present for user locale setting. It means that you can neither create nor update it. And, of course, you cannot even read any information about it.

All these things applied on API and CLI. Documentation also missed any details about that setting (both API and Hammer)

Please, verify both functionality and documentation

Comment 12 jcallaha 2016-04-05 20:45:20 UTC
Verified in Satellite 6.2 beta snap 6 Compose 1. It is now possible to view and update the locale in API and CLI.

Comment 14 Bryan Kearney 2016-07-27 11:01:49 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-2016:1501