Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 683550

Summary: Version number isn't parsed right for installed products
Product: Red Hat Enterprise Linux 6 Reporter: J.C. Molet <jmolet>
Component: python-rhsmAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: bkearney, spandey, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-rhsm-0.95.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:35:24 UTC Type: ---
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: 568421    
Attachments:
Description Flags
version parsing
none
working version number
none
pem used none

Description J.C. Molet 2011-03-09 17:02:30 UTC
Created attachment 483264 [details]
version parsing

Description of problem:
In subscription-manager-gui on the "My Installed Software" tab, it doesn't look like the version field is being parsed right.  It shows an unformatted OID number.

Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.95.4-1.git.1.bb03d4e.el6.x86_64

Steps to Reproduce:
1. Install subscription-manager-gnome on a rhel6 machine.
2. On your on premise candlepin, import all test data.
3. Copy the "Red Hat Enterprise Linux Entitlement" product cert to your client's cert folder.
4. run the gui and go to the my installed software tab.
  
Actual results:
you see an unformatted version number.

Expected results:
You see something more human readable

Additional info:
see the attached screen shot.

Comment 1 James Bowes 2011-03-10 13:03:01 UTC
Certificate parsing doesn't seems to fail whenever there's an extension present with an empty value. I'm working on a fix to the extension parsing now, but the current setup reads the cert as text, then parses the output. We'd be much better served by doing it via some api (python-nss?)

Comment 2 James Bowes 2011-03-11 16:05:14 UTC
fixed in master and RHEL6 branches. should be available in python-rhsm-0.95.5

Comment 7 J.C. Molet 2011-03-29 16:20:34 UTC
Created attachment 488493 [details]
working version number

This verifies that the bug is now fixed.

Comment 8 J.C. Molet 2011-03-29 16:22:08 UTC
Created attachment 488495 [details]
pem used

This cert file was the one used to reproduce and verify the bug.  Its useful because it has blank values for the version.

Comment 9 errata-xmlrpc 2011-05-19 13:35:24 UTC
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/RHEA-2011-0608.html