Bug 493975 - debug statements are causing an exception when directories are used as sources in /etc/sysconfig/rhn/sources
debug statements are causing an exception when directories are used as source...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhn-applet (Show other bugs)
4.8
All Linux
low Severity medium
: rc
: ---
Assigned To: Pradeep Kilambi
Preethi Thomas
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-03 11:00 EDT by Preethi Thomas
Modified: 2009-05-18 16:15 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-18 16:15:12 EDT
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 Preethi Thomas 2009-04-03 11:00:11 EDT
Description of problem:
this seems to be connected to 456064 & 487660
debug statements are causing an exception when directories are used as sources in /etc/sysconfig/rhn/sources

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

 rhn-applet-2.1.29-2.el4.i386.rpm
rhnlib-2.1.4-5.el4.noarch.rpm
 up2date-4.8.1-28.el4.i386.rpm  
up2date-gnome-4.8.1-28.el4.i386.rpm

How reproducible:


Steps to Reproduce:
1. mkdir /tmp/"has space"
2.echo dir foo '/tmp/has space' >> /etc/sysconfig/rhn/sources
2. rhn-applet-tui
3.
  
Actual results:
[root@fjs-0-13 ~]# rhn-applet-gui
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainloop is deprecated, use gtk.main instead
  self.warn(message, DeprecationWarning)

[root@fjs-0-13 ~]# rhn-applet-tui
Traceback (most recent call last):
  File "/usr/bin/rhn-applet-tui", line 103, in ?
    main(original_arg_list)
  File "/usr/bin/rhn-applet-tui", line 63, in main
    model = rhnAppletModelTUI(None, url, uuid)
  File "/usr/share/rhn/rhn_applet/rhn_applet_model.py", line 459, in __init__
    while not self.fully_initialized():
  File "/usr/share/rhn/rhn_applet/rhn_applet_model.py", line 410, in fully_initialized
    self.__build_sources()
  File "/usr/share/rhn/rhn_applet/rhn_applet_model.py", line 147, in __build_sources
    rhn_utils.log_debug("Failed to initialize source %s for %s : %s %s" % (
KeyError: 'url'


[root@fjs-0-13 ~]# rhn-applet-gui
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainloop is deprecated, use gtk.main instead
  self.warn(message, DeprecationWarning)

Expected results:


Additional info:
Comment 1 Preethi Thomas 2009-04-03 14:00:04 EDT
qa_ack+
Comment 8 errata-xmlrpc 2009-05-18 16:15:12 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0975.html

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