Bug 1320468

Summary: Bad wrapping of long satellite server name in rhn_register GUI
Product: Red Hat Enterprise Linux 6 Reporter: Radovan Drazny <rdrazny>
Component: rhn-client-toolsAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED ERRATA QA Contact: Pavel Studeník <pstudeni>
Severity: low Docs Contact:
Priority: low    
Version: 6.8CC: galtukho, jhutar, pstudeni, thozza, tkasparek, tlestach
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 11:21:28 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:
Attachments:
Description Flags
rhn_register GUI with long Satellite server DNS name none

Description Radovan Drazny 2016-03-23 09:55:59 UTC
Created attachment 1139443 [details]
rhn_register GUI with long Satellite server DNS name

Description of problem:
When registering to a Satellite server with a long DNS name, wrapping of info text above the login/password fields is rather strange. See the attached screenshot.

Version-Release number of selected component (if applicable):
rhn_register (Red Hat Network Client Tools) 1.0.0.1-38.el6

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
Run a registration against a long-named Sat server

Actual results:
Server name and info text is badly wrapped

Expected results:
Server name and info text should be either on one line or on two well separated lines

Additional info:

Comment 5 Gennadii Altukhov 2016-10-25 11:20:00 UTC
I have played a little bit with this bug and I always can find a length of hostname when the label will format ugly.


To test this bug we can change method "loginPagePrepare(self)" in class "LoginPage" in file /usr/share/rhn/up2date_client/rhnregGui.py.

1) in the following line change "host" to some string:
satelliteText = _("Please enter your account information for the <b>%s</b> Red Hat Network Satellite:") % host

2) right after previous line add new one:
instructionsLabel.set_justify(gtk.JUSTIFY_CENTER)
see http://www.pygtk.org/pygtk2reference/class-gtklabel.html for details.

I tried to change justification, wrap hostname into '\n', but in all cases, I was able to find hostname when label looks ugly.

Comment 6 Gennadii Altukhov 2016-10-25 13:45:42 UTC
Added newline before hostname. In this case, only labels with very long hostname look ugly.
spacewalk.git:
bf82ce95e5c2acdc0ad2fcbfd17a140e99c9afe6

Comment 8 Pavel Studeník 2017-01-20 10:59:21 UTC
Verified with package rhn-client-tools-1.0.0.1-43.el6.noarch

Comment 10 errata-xmlrpc 2017-03-21 11:21:28 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-2017-0736.html