Bug 1625205

Summary: Subscription Details switcher items are not filtered by organization
Product: Red Hat Satellite Reporter: Mirek Długosz <mzalewsk>
Component: Subscription ManagementAssignee: Amir <afeferku>
Status: CLOSED ERRATA QA Contact: Mirek Długosz <mzalewsk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: egolov, tstrachota
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.7.0.26-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:23:10 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
Screenshot showing problem none

Description Mirek Długosz 2018-09-04 11:41:30 UTC
Created attachment 1480750 [details]
Screenshot showing problem

On new Subscription details page, there is a switcher that allows to quickly jump to another subscription (without visiting page with list of all subscriptions in between). That switcher shows all subscriptions, including these from other organizations. See screenshot for list of subscriptions in organization and list of subscriptions available in switcher.

If the same subscription is available on two organizations, it will appear on switcher list twice - with no indication which one is from current org.

While user is able to see details of subscription from another organization, "Enabled Products" tab will display "No products are enabled." - even if there are products available.

On e.g. Subnets page, switcher displays only subnets from the same org. I believe that switcher usually shows only items from current organization and Subscriptions switcher behavior is exception.


Version-Release number of selected component (if applicable):
Satellite 6.4.0 snap 20
tfm-rubygem-katello-3.7.0.22-1.el7sat.noarch


Steps to Reproduce:
1. Create two organizations with different manifests and different products sets
2. Select one organization, Content -> Subscriptions -> any
3. Click icon with two arrows in breadcrumbs on top

Actual results:
List of subscriptions in switcher contains items from other organization, i.e. items that were not available on main Subscriptions list.

Comment 2 Mirek Długosz 2018-09-04 12:14:49 UTC
Switcher on pages available under /legacy_subscriptions/:id: URL displays only subscriptions from current org. Adding Regression tag.

Comment 3 Tomas Strachota 2018-09-05 10:47:43 UTC
Created redmine issue https://projects.theforeman.org/issues/24822 from this bug

Comment 4 Satellite Program 2018-09-06 14:02:38 UTC
Upstream bug assigned to afeferku

Comment 5 Satellite Program 2018-09-06 14:02:41 UTC
Upstream bug assigned to afeferku

Comment 6 Satellite Program 2018-09-07 16:02:46 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24822 has been resolved.

Comment 8 Mirek Długosz 2018-09-18 17:09:57 UTC
On Satellite 6.4 snap 22 (tfm-rubygem-katello-3.7.0.28-1) switcher displays subscriptions from current organization only.

Comment 9 Bryan Kearney 2018-10-16 19:23:10 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, 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-2018:2927