Bug 1817224 - Loading one org's content view when switching to a different org
Summary: Loading one org's content view when switching to a different org
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.8.0
Assignee: James Jeffers
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-25 20:39 UTC by Lai
Modified: 2020-10-27 13:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 13:01:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
org cv (733.33 KB, video/webm)
2020-06-02 15:32 UTC, Lai
no flags Details
failure when drill into version (1.19 MB, video/webm)
2020-06-29 16:01 UTC, Lai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29013 0 Normal Closed Changing the organization in UI shows sync plan created in another organization 2020-10-28 17:30:11 UTC
Foreman Issue Tracker 30092 0 Normal Closed Content view version details can be viewed by an organization that the content view does not belong to 2020-10-28 17:30:12 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:01:57 UTC

Description Lai 2020-03-25 20:39:27 UTC
Description of problem:
When a user is on one organization (org A) and is accessing their own cv and the user switches org (org B), org A's cv is loaded in org B. 

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

How reproducible:
100

Steps to Reproduce:
1. Create 2 different organizations
2. Log into the first org.
3. Create cv and add some repos
4. publish
5. In that cv, switch org

Actual results:
The same cv can still be accessed.

Expected results:
The different org's cv is accessed

Additional info:

Comment 6 Brad Buckingham 2020-04-07 13:49:19 UTC
A fix for this issue has been provided with upstream redmine 29013.  That redmine is also linked to bug 1624049.  While bug 1624049 is specific to sync plans, the solution provided is generic and applies to content views and other katello resources.

Comment 7 Lai 2020-06-02 15:32:33 UTC
Created attachment 1694521 [details]
org cv

Still able to see org's cv when switching to another org.  The cv name isn't there, but the table still shows the content of the previous org's cv.

Tested on 6.8.0 snap 2.1

Comment 8 Lai 2020-06-02 15:33:28 UTC
Failing QA.  Seeing #7 for info.

Comment 9 James Jeffers 2020-06-15 11:48:13 UTC
Connecting redmine issue https://projects.theforeman.org/issues/30092 from this bug

Comment 10 Lai 2020-06-29 16:01:45 UTC
Created attachment 1699189 [details]
failure when drill into version

If you click content view and drill into the version and then switch org, it still show's the previous org's cv details.  In this case, it's rpm, details, errata, etc which you can still click through.

Comment 11 Lai 2020-06-29 16:03:12 UTC
Failing QA, please look at previous comment for details.

Tested on 6.8.0_06

Comment 12 James Jeffers 2020-07-27 13:46:29 UTC
Based on last week's conversation with Lai, it seemed like a recent snap didn't show this problem.

Comment 13 Lai 2020-07-28 18:38:37 UTC
Steps to test:
1. Create 2 different organizations
2. Log into the first org.
3. Create cv and add some repos
4. publish
5. In that cv, switch org

Actual results:
The different org's cv is accessed

Expected results:
The different org's cv is accessed

Additional: drilling into the version cleared out the list of packages, erratas, etc so information from previous org's cv is not shown.


Verified on 6.8.0_010

Comment 16 errata-xmlrpc 2020-10-27 13:01:14 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


Note You need to log in before you can comment on or make changes to this bug.