Bug 856949 - incorrect org name displayed when running command subscription-manager identity in RHEL 5.9 Workstation
incorrect org name displayed when running command subscription-manager identi...
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: candlepin-bugs
Entitlement Bugs
: Reopened
Depends On:
Blocks: 771748
  Show dependency treegraph
Reported: 2012-09-13 04:25 EDT by gaoshang
Modified: 2012-09-20 08:07 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-09-20 08:07:34 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description gaoshang 2012-09-13 04:25:08 EDT
Description of problem:
when running command subscription-manager identity on RHEL 5.9 workstation x86_64/i386, org name displayed incorrectly - it shows the org id instead of the org name.

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

How reproducible:

Steps to Reproduce:
1. Register system to candlepin
2. Run command subscription-manager identity
Actual results:
The output of above step 2 shows the org name as below which is the same as the org id:
org name: 6655649
org id: 6655649

Expected results:
The output of above step 2 should show org name/id as below:
org name: stage_test_27 User
org id: 6655649

Additional info:
In subscription-manager-gui, click view System Facts through System menu, the organization displayed in Subscription Manager - Facts page also shows the org id instead of the org name.
Comment 1 gaoshang 2012-09-13 04:49:17 EDT
This bug can be reproduced only in RHEL 5.9 Workstation i386/x86_64. RHEL 5.9 client and RHEL 5.9 server have not this issue.
Comment 2 RHEL Product and Program Management 2012-09-13 04:59:04 EDT
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 3 Bryan Kearney 2012-09-17 14:52:23 EDT
Per 852001 the id is now showing the key which can beused in the URL. For hosted, this is the same as the name. For other tooling, this is not the case.
Comment 7 Bryan Kearney 2012-09-19 16:33:47 EDT
Here is the data for 27:


Note, name should be 


and key should be


The code is accurate, the data is not set up consistently
Comment 8 gaoshang 2012-09-20 00:14:30 EDT
By comparing the following 2 user's creation data, I think the "displayName" filed for user stage_test_27 should be: "displayName":"stage_test_27 User", it should not be just blank.

By the way, why org name is 6655649 when the "displayName" filed is blank in the creation data of the user stage_test_27?

stage_test_12 creation data ==>

{"created":"2012-07-12T01:22:50.000+0000","updated":"2012-07-12T01:22:50.000+0000","parentOwner":null,"id":"8a99f9843870e1dc013878c802e13e37","key":"6655634","displayName":"stage_test_12 User","contentPrefix":null,"defaultServiceLevel":null,"upstreamUuid":null,"href":"/owners/6655634"}'

stage_test_27 creation data ==>

Comment 9 Bryan Kearney 2012-09-20 08:07:34 EDT
I am seeing this today:

{'content': '{"created":"2012-07-12T20:43:02.000+0000","updated":"2012-07-12T20:43:02.000+0000","parentOwner":null,"id":"8a99f983387c4cd501387cee35880a30","key":"6655649","displayName":"6655649","contentPrefix":null,"defaultServiceLevel":null,"upstreamUuid":null,"href":"/owners/6655649"}', 'status': 200}
Current identity is: 4397e12f-7d9e-4b8d-b30e-db32ddfbb96a
name: bkearney
org name: 6655649
org id: 6655649

Again, I believt this code is fine.

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