Bug 66144

Summary: up2date --config crashes if proxy user is numeric
Product: [Retired] Red Hat Linux Reporter: Didier Arenzana <darenzana>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: gafton, mihai.ibanescu, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-14 14:57:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Didier Arenzana 2002-06-05 12:37:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
I use a proxy to access the internet. This proxy needs user authentication, and
my username on this proxy consists of only numeric characters [0-9].
I used up2date --config to enter this information, and it worked.
Now chen I try to launch up2dtae --config, it stops with the following lines of
text:
 up2date --configure
Traceback (innermost last):
  File "/usr/sbin/up2date", line 1137, in ?
    main()
  File "/usr/sbin/up2date", line 339, in main
    configdlg.main()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 311, in main
    gui = Gui()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 62, in __init__
    self.setInitialValues()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 74, in setInitialValues
    self.xml.get_widget("proxyUserEntry").set_text(self.cfg.readEntry("proxyUser"))
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2145, in set_text
    _gtk.gtk_entry_set_text(self._o, text)
TypeError: gtk_entry_set_text, argument 2: expected string, int found

The 'expected string, int found' makes me think the problem is with my   pproxy
user id that contains only numbers.


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


How reproducible:
Always

Steps to Reproduce:
1.run up2date --config
2.Enter a numeric userid for the proxy authentication
3.Save the config
4.run up2date --config again
	

Actual Results:  up2date window does not open, and fails with the following error:
 up2date --configure
Traceback (innermost last):
  File "/usr/sbin/up2date", line 1137, in ?
    main()
  File "/usr/sbin/up2date", line 339, in main
    configdlg.main()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 311, in main
    gui = Gui()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 62, in __init__
    self.setInitialValues()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 74, in setInitialValues
    self.xml.get_widget("proxyUserEntry").set_text(self.cfg.readEntry("proxyUser"))
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2145, in set_text
    _gtk.gtk_entry_set_text(self._o, text)
TypeError: gtk_entry_set_text, argument 2: expected string, int found


Expected Results:  the window should open :o)

Additional info:

One workaround I found was to manualy edit the config file in /etc/rhn/up2date.

Comment 1 Adrian Likins 2002-06-13 20:25:21 UTC
Hmmm, indeed. Looks like I need to stringify the proxy username
(and probabaly passwd).

Fixed in cvs, should be fixed in next release 2.9.x

Comment 2 Jay Turner 2003-02-14 14:57:36 UTC
Fix confirmed with up2date-3.1.15-7.