Bug 491085 - rhn-applet-tui --url , traceback with bad url
Summary: rhn-applet-tui --url , traceback with bad url
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhn-applet
Version: 4.8
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: John Matthews
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-19 12:35 UTC by Petr Sklenar
Modified: 2010-07-26 16:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-26 13:39:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2009-03-19 12:35:56 UTC
Description of problem:
not documented + traceback, user cannot recognize what's wrong with cmd /usr/bin/rhn-applet-tui --url http://something

Version-Release number of selected component (if applicable):
# rpm -q rhnlib up2date rhn-applet
rhnlib-2.1.4-4.el4
up2date-4.8.1-26.el4
rhn-applet-2.1.28-3.el4

How reproducible:
always

Steps to Reproduce:
1. # /usr/bin/rhn-applet-tui --url http://rhn.webqa.redhat.com
Caught exception: 
unable to remove: 
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 465, in __init__
    source.refresh(1)
  File "/usr/share/rhn/rhn_applet/rhn_applet_source.py", line 35, in refresh
    self._do_refresh()
  File "/usr/share/rhn/rhn_applet/rhn_applet_rpc.py", line 213, in _do_refresh
    status = server.applet.poll_status()
  File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 599, in __call__
    return self._send(self._name, args)
  File "/usr/lib/python2.3/site-packages/rhn/rpclib.py", line 324, in _request
    request, verbose=self._verbose) 
  File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 189, in request
    return self._process_response(fd, connection)
  File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 217, in _process_response
    return self.parse_response(fd)
  File "/usr/lib/python2.3/site-packages/rhn/transports.py", line 241, in parse_response
    return u.close()
  File "/usr/lib64/python2.3/xmlrpclib.py", line 740, in close
    raise ResponseError()
xmlrpclib.ResponseError: <xmlrpclib.ResponseError instance at 0x2a9a73dfc8>

  
Actual results:
traceback

Expected results:
option "--url" is better documented and it has to be without traceback

Additional info:

Comment 1 Jan Pazdziora 2010-07-26 13:39:01 UTC
With latest rhn-applet-tui, the error message is much more descriptive:

# /usr/bin/rhn-applet-tui --url http://rhn.webqa.redhat.com
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 464, in __init__
    source.refresh(1)
  File "/usr/share/rhn/rhn_applet/rhn_applet_source.py", line 35, in refresh
    self._do_refresh()
  File "/usr/share/rhn/rhn_applet/rhn_applet_rpc.py", line 245, in _do_refresh
    raise rhnAppletException(p)
rhn_utils.rhnAppletException: Error: <ProtocolError for rhn.webqa.redhat.com /RPC2: 404 Not Found>


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