Bug 83529 - up2date-config start error when proxyPassword is a number
up2date-config start error when proxyPassword is a number
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
7.3
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Fanny Augustin
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-05 05:41 EST by Marcel Svitalský
Modified: 2007-04-18 12:50 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-02-13 23:25:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marcel Svitalský 2003-02-05 05:41:06 EST
Description of problem:

If user's proxyPassword is a number, up2date-config fails to start and generates
an error output from the Python interpreter.


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


How reproducible: see Description.


Actual results: Error traceback from Python


Expected results: up2date-config started


Additional info:

I suggest to change /usr/share/rhn/up2date_client/configdlg.py, line 77, from
current:

self.xml.get_widget("proxyPasswordEntry").set_text(self.cfg.readEntry("proxyPassword"))

to:

self.xml.get_widget("proxyPasswordEntry").set_text(str(self.cfg.readEntry("proxyPassword")))
Comment 1 Marcel Svitalský 2003-02-05 06:31:40 EST
Maybe I could add traceback too:    :-))

Traceback (innermost last):
  File "/usr/sbin/up2date-config", line 781, in ?
    main()
  File "/usr/sbin/up2date-config", line 512, in main
    configdlg.main()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 331, in main
    gui = Gui()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 64, in __init__
    self.setInitialValues()
  File "/usr/share/rhn/up2date_client/configdlg.py", line 77, in setInitialValues
   
self.xml.get_widget("proxyPasswordEntry").set_text(self.cfg.readEntry("proxyPassword"))
  File "/usr/lib/python1.5/site-packages/gtk.py", line 2213, in set_text
    _gtk.gtk_entry_set_text(self._o, text)
TypeError: gtk_entry_set_text, argument 2: expected string, int found
Comment 2 Adrian Likins 2003-02-05 11:38:51 EST
should be fixed in 3.1.12 
Comment 3 Jay Turner 2003-02-13 23:25:49 EST
Fix confirmed with up2date-3.1.15-7.

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