Bug 1843846

Summary: Host - Registered Content Hosts report: "Safemode doesn't allow to access 'report_hraders' on #<Safemode::ScopeObject>"
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: ReportingAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: egolov, mhulan, oprazak, pcreech, tbrisker
Target Milestone: 6.8.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:03:08 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:

Description Lukáš Hellebrandt 2020-06-04 09:49:32 UTC
Description of problem:
Registered Content Hosts report template contains typo "report_hraders" which causes rendering to fail with error "Safemode doesn't allow to access 'report_hraders' on #<Safemode::ScopeObject>".

Version-Release number of selected component (if applicable):
Sat 6.8 snap 2.1

How reproducible:
Deterministic

Steps to Reproduce:
1. Generate "Host - Registered Content Hosts" report

Actual results:
Error, nothing generated

Expected results:
Successfully generated report

Comment 1 Tomer Brisker 2020-06-07 08:32:03 UTC
Created redmine issue https://projects.theforeman.org/issues/30039 from this bug

Comment 2 Bryan Kearney 2020-06-08 12:00:46 UTC
Upstream bug assigned to mhulan

Comment 3 Bryan Kearney 2020-06-08 12:00:48 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/30039 has been resolved.

Comment 4 Lukáš Hellebrandt 2020-07-16 12:03:17 UTC
Verified with Sat 6.8  snap 8.0.

Used reproducer from OP, the report template can now be generated successfully. Also, the typo is fixed.

Comment 7 errata-xmlrpc 2020-10-27 13:03:08 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 (Important: Satellite 6.8 release), 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:4366