Bug 1906317

Summary: "undefined method `name' for nil:NilClass" while switching organization from template invocation page.
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: Organizations and LocationsAssignee: Tomer Brisker <tbrisker>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aruzicka, oezr, tbrisker, zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_remote_execution-4.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:24:23 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 Jameer Pathan 2020-12-10 09:16:19 UTC
Description of problem:
"undefined method `name' for nil:NilClass" while switching organization from template invocation page.

Version-Release number of selected component (if applicable):
- Satellite 6.9.0 snap 4

How reproducible:
- Always

Steps to Reproduce:
1. Run job on a host
2. Once job completed (failed/succeeded) click on hostname of that job to see template invocation(Detailed information about run)
3. Switch to diferent organization from that page.

Actual results:
" Oops, we're sorry but something went wrong undefined method `name' for nil:NilClass"

Expected results:
Proper error message

Additional info:
- Observed same behavior on Satellite 6.8 as well.

Comment 1 Tomer Brisker 2021-01-04 08:56:33 UTC
Created redmine issue https://projects.theforeman.org/issues/31562 from this bug

Comment 2 Bryan Kearney 2021-01-31 06:52:34 UTC
Upstream bug assigned to tbrisker

Comment 3 Bryan Kearney 2021-01-31 06:52:36 UTC
Upstream bug assigned to tbrisker

Comment 4 Jameer Pathan 2021-03-09 05:50:33 UTC
Verified

Verified with:
- Satellite 6.9.0 snap 16

Test steps:
1. Run job on a host
2. Once job completed (failed/succeeded) click on hostname of that job to see template invocation(Detailed information about run)
3. Switch to different organization from that page.

Observation:
"Could not display data for job invocation." message.

Comment 7 errata-xmlrpc 2021-04-21 13:24:23 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 (Moderate: Satellite 6.9 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-2021:1313