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 1860131

Summary: Activation page should prompt for organization selection in any context
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: Organizations and LocationsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lucie Vrtelova <lvrtelov>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.8.0Keywords: Regression
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-03 13:09:56 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
Activation key page screen none

Description Ranjan Kumar 2020-07-23 18:26:27 UTC
Description of problem:  Activation page should not be loaded in any context.  Organization selection page should be come up when any organization and any location is selected

Production log:
2020-07-23T23:38:38 [I|app|26a2d0e4] Started GET "/katello/api/v2/activation_keys?organization_id=&page=1&paged=true&per_page=20&search=&sort_by=name&sort_order=ASC" for 127.0.0.1 at 2020-07-23 23:38:38 +0530
2020-07-23T23:38:38 [I|app|26a2d0e4] Processing by Katello::Api::V2::ActivationKeysController#index as HTML
2020-07-23T23:38:38 [I|app|26a2d0e4]   Parameters: {"organization_id"=>"", "page"=>"1", "paged"=>"true", "per_page"=>"20", "search"=>"", "sort_by"=>"name", "sort_order"=>"ASC", "api_version"=>"v2"}
2020-07-23T23:38:38 [E|app|26a2d0e4] 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'



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


How reproducible: Always


Steps to Reproduce:
1. set any organisation and any location on top
2. Go to Content -> Activation key

Actual results:  Activation page get loaded


Expected results: Organization selection should come up


Additional info:
# rpm -qa satellite
satellite-6.8.0-0.7.beta.el7sat.noarch
# rpm -qa katello
katello-3.16.0-0.4.rc4.el7sat.noarch
# rpm -qa foreman
foreman-2.1.0.1-1.el7sat.noarch

Comment 1 Ranjan Kumar 2020-07-23 18:29:32 UTC
Created attachment 1702263 [details]
Activation key page screen

Comment 3 Brad Buckingham 2020-08-03 13:09:56 UTC

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