Bug 1372721 - collect users timezone and browser locale options to spacewalk-debug
Summary: collect users timezone and browser locale options to spacewalk-debug
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 570
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Radovan Drazny
URL:
Whiteboard:
Depends On:
Blocks: sat5-errata
TreeView+ depends on / blocked
 
Reported: 2016-09-02 13:31 UTC by Marcelo Moreira de Mello
Modified: 2016-11-07 13:38 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-2.3.3-45-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1372722 (view as bug list)
Environment:
Last Closed: 2016-11-07 13:38:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2662 0 normal SHIPPED_LIVE Satellite 5.7 bug fix update 2016-11-07 18:37:17 UTC

Description Marcelo Moreira de Mello 2016-09-02 13:31:27 UTC
Description of problem:
Backport upstream commit to collect users timezone and browser locale options to spacewalk-debug

 spacewalk.master 4d8908158431fcc6a4c1b25710d8829ecd3a0faa


Version-Release number of selected component (if applicable):
  
  Red Hat Satellite 5.7 


[root@orbital ~]# cat spacewalk-debug/users-preferences 
   login   |        timezone         | locale 
-----------+-------------------------+--------
 admin     | United States (Eastern) | en_US
 alice     | United States (Eastern) | 
 bob       | United States (Eastern) | 
 FPLtest   | United States (Eastern) | 
 mmello    | United States (Eastern) | pt_BR
 ro-user   | United States (Eastern) | 
 test_user | United States (Eastern) | 
(7 rows)

Comment 1 Tomas Lestach 2016-09-08 14:20:37 UTC
Moving to MODIFIED as the patch is available in upstream.

Comment 4 Radovan Drazny 2016-09-29 13:45:23 UTC
Tested on spacewalk-backend-2.3.3-44. The file "users-preferences" is present in the spacewalk-debug.tar.bz2 archive. Problem is that for the first user (created on freshly installed Satellite during the first connection to the WebUI), there is no timezone info present in the db. Subsequently, the "users-preferences" file is empty - containing only column headers, but no user info.

Only after updating the user in WebUI Users -> Users List is timezone information for the first user saved (and then exported) to the database. 

User created using the WebUI Users -> Users -> Create user has timezone information present right from the beginning - no problem there. 

Users-preferences file should contain timezone info for first user, hence FailedQA. I have filled missing timezone information problem as BZ1380403.

Comment 5 Grant Gainey 2016-09-29 18:19:50 UTC
spacewalk-.github:
d44717aeba6f279f62c3bfe828f27cbc58aac87f

Comment 8 Radovan Drazny 2016-10-03 12:46:49 UTC
Tested again on spacewalk-backend-2.3.3-45. The "users-preferences" file contains list of all users this time, no matter if they have or have not the timezone info in the DB. Issue with the missing timezone is still valid, see the BZ1380403. 
VERIFIED

Comment 10 errata-xmlrpc 2016-11-07 13:38:33 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://rhn.redhat.com/errata/RHBA-2016-2662.html


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