Bug 452829 - Unhandled exception in handling of cached login data.
Unhandled exception in handling of cached login data.
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools (Show other bugs)
5.2
All Linux
medium Severity medium
: rc
: ---
Assigned To: Pradeep Kilambi
:
: 461554 466862 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-25 07:55 EDT by Martin Poole
Modified: 2011-01-24 18:07 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-20 17:17:37 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)


External Trackers
Tracker ID Priority Status Summary Last Updated
IBM Linux Technology Center 44433 None None None Never

  None (edit)
Description Martin Poole 2008-06-25 07:55:52 EDT
Description of problem:

The recently included login caching code in
/usr/share/rhn/up2date_client/up2dateAuth.py does not gracefully handle a
failure when attempting to unpickle the stored data.

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

0.4.17-8.el5

How reproducible:
always

Steps to Reproduce:
1. yum check-update
2. cat /dev/null >/var/spool/up2date/loginAuth.pkl
3. yum check-update
  
Actual results:

Loading "security" plugin
Loading "rhnplugin" plugin
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 85, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
    disabled_plugins=self.optparser._splitArg(opts.disableplugins))
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 183, in _getConfig
    self.plugins.run('init')
  File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 169, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rhnplugin.py", line 110, in init_hook
    login_info = up2dateAuth.getLoginInfo()
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 211, in getLoginInfo
    login()
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 159, in login
    if readCachedLogin():
  File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 120, in readCachedLogin
    data = pickle.load(pcklAuth)
  File "/usr/lib/python2.4/pickle.py", line 1390, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.4/pickle.py", line 872, in load
    dispatch[key](self)
  File "/usr/lib/python2.4/pickle.py", line 894, in load_eof
    raise EOFError
EOFError


Expected results:

Handle error as if file was not present.

Additional info:
Comment 1 RHEL Product and Program Management 2008-06-25 08:13:08 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 3 Pradeep Kilambi 2008-08-20 12:29:49 EDT
fixed!
Comment 4 John Matthews 2008-09-11 13:14:36 EDT
*** Bug 461554 has been marked as a duplicate of this bug. ***
Comment 8 errata-xmlrpc 2009-01-20 17:17:37 EST
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-0249.html
Comment 10 Pradeep Kilambi 2009-02-24 14:55:22 EST
*** Bug 466862 has been marked as a duplicate of this bug. ***

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