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 1601542

Summary: Error on subscription page with any organization context " Couldn't find organization '' "
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: Subscription ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: nkathole
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-16 19:31:22 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
foreman_production.log
none
screen shot of error message none

Description Jameer Pathan 2018-07-16 15:15:21 UTC
Created attachment 1459204 [details]
foreman_production.log

Description of problem:
once we try to access content -> subscriptions page with any organization, we get " Couldn't find organization '' " error message and it does not go away, even after changing to the Default_Organization.


Version-Release number of selected component (if applicable):
Satellite 6.4 snap 12

# rpm -q satellite
satellite-6.4.0-10.beta.el7sat.noarch


How reproducible: always

Steps to Reproduce:
1.Change to "Any organization" context and go to Content -> Subscriptions
2.change organization into to any other organization (from the same page)
3.error message " Couldn't find organization '' " appears
4.Try to remove the error
5.Change the organization again and still the error message does not disappear

Actual results: Error showing "Couldn't find organization ''" and production.log shows:
 Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.rc1.4/app/views/katello/api/v2/organizations/index.json.rabl within api/v2/layouts/index_layout (2.2ms)
2018-07-16T10:49:03 [E|app|851ce] Katello::HttpErrors::NotFound: Couldn't find organization ''
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.rc1.4/app/controllers/katello/api/v2/api_controller.rb:162:in `find_optional_organization'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:413:in `block in make_lambda'


Expected results: The error message should be disappeared

Comment 1 Jameer Pathan 2018-07-16 15:22:16 UTC
Created attachment 1459206 [details]
screen shot of error message

Comment 3 Brad Buckingham 2018-07-16 19:31:22 UTC

*** This bug has been marked as a duplicate of bug 1597377 ***