Bug 1783031

Summary: Object references instead of values in Entitlement reports
Product: Red Hat Satellite Reporter: Cole Higgins <chiggins>
Component: ReportingAssignee: Dominik Matoulek <dmatoule>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: ahecox, asherlan, dmatoule, egolov, ehelms, inecas, mhulan, oprazak, rankumar, tbrisker
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.14.0.17-1,foreman-1.24.1.19-1,tfm-rubygem-katello-3.14.0.19-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 13:39:06 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:
Attachments:
Description Flags
HTML Entitlement report none

Description Cole Higgins 2019-12-12 20:54:31 UTC
Created attachment 1644565 [details]
HTML Entitlement report

Description of problem:
The HTML output format is returning the object itself not the value of the object for Host Collections and Products.


Version-Release number of selected component (if applicable): 
Satellite 6.7 Snap 5


How reproducible:
100%


Steps to Reproduce:
1. Go to monitor -> Report Templates -> Entitlements -> Generate
2. Select the Output format of HTML
3. Click submit and download the report

Actual results: 
Host Collections: 
#<Katello::HostCollection::ActiveRecord_Associations_CollectionProxy:0x0000000021043cd0>


Expected results: The value of the object.


Additional info: This occurs through the UI, CLI, and API.

Comment 3 Ondřej Pražák 2020-01-03 10:01:08 UTC
Created redmine issue https://projects.theforeman.org/issues/28627 from this bug

Comment 4 Ondřej Pražák 2020-02-21 08:32:31 UTC
*** Bug 1805621 has been marked as a duplicate of this bug. ***

Comment 5 Bryan Kearney 2020-03-12 10:09:08 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28627 has been resolved.

Comment 11 Lukáš Hellebrandt 2020-03-19 15:30:35 UTC
FailedQA with Sat 6.7 snap 16.

Unfortunately, this caused snap-wise (because the report wasn't in 6.6) regression in JSON format. Multiple Host Collections should be (and were) an array:

"Host Collections":["fish","bird"]

After this fix, it's a string with comma-separated names:

"Host Collections":"fish, bird"

Comment 14 Lukáš Hellebrandt 2020-03-26 16:12:46 UTC
Verified with Sat 6.7 snap 17.

The original bug is fixed and issue described in comment 11 is fixed as well.

During verification, I discovered similar issue as in OP: in Registered Hosts report in HTML format, Subscriptions are printed as an object referrence. Reporting a standalone BZ about this issue.

Comment 15 Lukáš Hellebrandt 2020-03-26 16:16:46 UTC
^ bug 1817617

Comment 16 Bryan Kearney 2020-04-14 13:39:06 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.

https://access.redhat.com/errata/RHSA-2020:1454