Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1861970

Summary: Content -> Product doesn't work when no organization is selected
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: RepositoriesAssignee: Partha Aji <paji>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: high    
Version: 6.8.0CC: ahumbe, jpathan, jyejare, paji, pcreech, rankumar, swadeley, vijsingh
Target Milestone: 6.8.0Keywords: PrioBumpGSS, Regression, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.16.0.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:04:55 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 Anand Agrawal 2020-07-30 04:36:59 UTC
Description of problem:

Context Any Organization

Content - > Product doesn't show any product

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Content -> Product page
2.
3.

Actual results:
No product listed

and the production.log shows below traces:

2020-07-30T09:58:52 [I|app|cc4095ec] Started GET "/katello/api/v2/products?enabled=true&organization_id=&page=1&paged=true&per_page=50&search=&sort_by=name&sort_order=ASC" for 127.0.0.1 at 2020-07-30 09:58:52 +0530
2020-07-30T09:58:52 [I|app|cc4095ec] Processing by Katello::Api::V2::ProductsController#index as HTML
2020-07-30T09:58:52 [I|app|cc4095ec]   Parameters: {"enabled"=>"true", "organization_id"=>"", "page"=>"1", "paged"=>"true", "per_page"=>"50", "search"=>"", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2"}
2020-07-30T09:58:52 [E|app|cc4095ec] Katello::HttpErrors::NotFound: Couldn't find organization ''
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc4.1/app/controllers/katello/api/v2/api_controller.rb:161:in `find_optional_organization'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.rc4.1/app/controllers/katello/api/v2/api_controller.rb:141:in `find_organization'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:428:in `block in make_lambda'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:181:in `block (2 levels) in halting_and_conditional'
/opt/theforeman/tfm/root/usr/share/gems/gems/actionpack-6.0.3.1/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:182:in `block in halting_and_conditional'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:513:in `block in invoke_before'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/callbacks.rb:513:in `each'

Expected results:
Please select an Organization

Additional info:

Comment 1 Brad Buckingham 2020-08-03 13:07:32 UTC
*** Bug 1861192 has been marked as a duplicate of this bug. ***

Comment 2 Brad Buckingham 2020-08-03 13:08:35 UTC
*** Bug 1861191 has been marked as a duplicate of this bug. ***

Comment 3 Brad Buckingham 2020-08-03 13:09:56 UTC
*** Bug 1860131 has been marked as a duplicate of this bug. ***

Comment 4 Brad Buckingham 2020-08-03 13:18:09 UTC
When resolving and verifying this bugzilla, please be sure to review and ensure that all duplicates are also addressed.

It appears that this issue likely impacts all Katello Angular pages.

Comment 5 Partha Aji 2020-08-05 19:23:33 UTC
Connecting redmine issue https://projects.theforeman.org/issues/30580 from this bug

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

Comment 7 Jameer Pathan 2020-08-26 12:37:37 UTC
*** Bug 1872108 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2020-10-27 13:04:55 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