Bug 606290 - graphical rhn_register cannot handle wrong certificate file
Summary: graphical rhn_register cannot handle wrong certificate file
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools   
(Show other bugs)
Version: 5.5
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
Depends On: 605304
Blocks: 582655
TreeView+ depends on / blocked
Reported: 2010-06-21 11:16 UTC by Milan Zázrivec
Modified: 2011-01-21 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 605304
Last Closed: 2011-01-21 16:25:11 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Milan Zázrivec 2010-06-21 11:16:33 UTC
+++ This bug was initially created as a clone of Bug #605304 +++

Description of problem:
graphical rhn_register cannot handle wrong certificate file

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

How reproducible:
always when connecting to hosted with wrong certificate file

Steps to Reproduce:
1. add to /etc/sysconfig/rhn/update some wrong file with nonsense info like  sslCACert=/root/install.log
2. rhn_register , gui mode
3. try to register
Actual results:
error occurs:

There was an error while applying your choice.

This error shouldn't have happened. If you'd like to help us improve this program, please file a bug at
bugzilla.redhat.com. Including the relevant parts of '/var/log/up2date' would be very helpful. Thanks!

Expected results:
it writes some error about wrong certificate

Additional info:

tail /var/log/up2date:

[Thu Jun 17 11:20:43 2010] rhn_register D: server is https://xmlrpc.rhn.webdev.redhat.com/XMLRPC
[Thu Jun 17 11:20:44 2010] rhn_register D: rpcServer: Calling XMLRPC registration.welcome_message
[Thu Jun 17 11:20:46 2010] rhn_register 
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 1358, in callAndFilterExceptions
    return function()
  File "/usr/share/rhn/up2date_client/rhnregGui.py", line 308, in _chooseServerPageApply
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 234, in getCaps
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 156, in __get_capabilities
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 204, in doCall
    ret = method(*args, **kwargs)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 39, in _request1
    ret = self._request(methodname, params)
  File "/usr/lib/python2.6/site-packages/rhn/rpclib.py", line 357, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 171, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.6/site-packages/rhn/transports.py", line 702, in send_http
  File "/usr/lib/python2.6/site-packages/rhn/connections.py", line 238, in connect
  File "/usr/lib/python2.6/site-packages/rhn/SSL.py", line 76, in init_ssl
<class 'OpenSSL.SSL.Error'>: []

[Thu Jun 17 11:20:49 2010] rhn_register D: login(forceUpdate=False) invoked
[Thu Jun 17 11:20:49 2010] rhn_register D: readCachedLogin invoked
[Thu Jun 17 11:20:49 2010] rhn_register D: Checking pickled loginInfo, currentTime= 1276788049.78 , createTime= 1276769303.56 , expire-offset= 3600.0
[Thu Jun 17 11:20:49 2010] rhn_register D: Pickled loginInfo has expired, created = 1276769303.56, expire = 1276772903.56.
[Thu Jun 17 11:20:49 2010] rhn_register logging into up2date server
[Thu Jun 17 11:20:49 2010] rhn_register D: rpcServer: Calling XMLRPC up2date.login

--- Additional comment from pm-rhel@redhat.com on 2010-06-17 11:53:21 EDT ---

This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

--- Additional comment from jhutar@redhat.com on 2010-06-18 07:02:53 EDT ---

qa_ack: +

--- Additional comment from syeghiay@redhat.com on 2010-06-18 10:54:27 EDT ---

The exception flag is not needed on bug fixes at this time.  Cleared flag.

Comment 1 Milan Zázrivec 2011-01-21 16:06:07 UTC
Actually, I need to nack this bug report, since the fix would be contingent
on fix for bug #605304, which got nacked as well.

Comment 2 RHEL Product and Program Management 2011-01-21 16:25:11 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

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