Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 824424

Summary: Displaying Online documentation is getting failed with error “AttributeError: addinfourl instance has no attribute 'getcode'”
Product: Red Hat Enterprise Linux 5 Reporter: spandey
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: awood, fsharath, jsefler, kbanerje, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 03:52:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 771748    
Attachments:
Description Flags
Help->OnlineDocumentation (GUI) none

Description spandey 2012-05-23 12:45:00 UTC
Description of problem:


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


How reproducible:
3/3

Prerequisites : 
Rhel5.9(i386) with following rpm 
subscription-manager-migration-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-migration-data-1.11.1.1-1.git.2.c7fbafe.el5
subscription-manager-gnome-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-firstboot-1.0.2-1.git.2.2b23e6e.el5
python-rhsm-1.0.1-1.git.1.e4fc11c.el5

Steps to repro : 
Login to client and launch subscription-manager gui.
Help >> Online Documentation.

Expected Result: 
At step 2 online documentation should display 

Actual Result :
Following traceback displayed on console . And no online documentation got displayed.

Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 443, in _online_docs_item_clicked
    webbrowser.open_new(self._get_online_doc_url())
  File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 471, in _get_online_doc_url
    if data.getcode() != 200:
AttributeError: addinfourl instance has no attribute 'getcode'

Comment 1 Sharath Dwaral 2012-06-20 20:44:33 UTC
*** Bug 833578 has been marked as a duplicate of this bug. ***

Comment 2 Alex Wood 2012-07-06 20:46:11 UTC
commit f0720516daa75bdd07b409638547d684f66d941e
Refs: <origin/awood/824424>, awood/824424, subscription-manager-1.0.8-1-12-gf07~
Author:     Alex Wood <awood>
AuthorDate: Fri Jul 6 15:39:17 2012 -0400
Commit:     Alex Wood <awood>
CommitDate: Fri Jul 6 15:41:24 2012 -0400

    824424: Fixing AttributeError thrown when accessing online help in RHEL 5.

In subscription-manager-1.0.9+

Comment 3 Sharath Dwaral 2012-07-09 23:00:15 UTC
Created attachment 597171 [details]
Help->OnlineDocumentation (GUI)

Version:
# rpm -qa | egrep "subscription-manager|python-rhsm"
subscription-manager-gui-1.0.8-1.git.14.dfc8438.el5
python-rhsm-1.0.3-1.git.0.583d26c.el5
subscription-manager-firstboot-1.0.8-1.git.14.dfc8438.el5
subscription-manager-1.0.8-1.git.14.dfc8438.el5
subscription-manager-migration-data-1.11.2.2-1.git.0.2eea155.el5
subscription-manager-migration-1.0.8-1.git.14.dfc8438.el5

Moving Bug to VERIFIED

Comment 5 RHEL Program Management 2012-07-09 23:08:27 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 7 errata-xmlrpc 2013-01-08 03:52:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0033.html