Bug 491085 - rhn-applet-tui --url , traceback with bad url
rhn-applet-tui --url , traceback with bad url
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rhn-applet (Show other bugs)
4.8
All Linux
medium Severity medium
: rc
: ---
Assigned To: John Matthews
Red Hat Satellite QA List
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-19 08:35 EDT by Petr Sklenar
Modified: 2010-07-26 12:16 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-26 09:39:01 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 Petr Sklenar 2009-03-19 08:35:56 EDT
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 09:39:01 EDT
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.