Project

General

Profile

Actions

Bug #24677

closed

No menu entry for Content -> Subscriptions for user with Viewer role

Added by Walden Raines about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1612989

User with Viewer role (or any other role that has only "view_subscriptions" in Subscription resource) has no menu entry for Content -> Subscriptions.

Such user can still access $HOST/subscriptions directly, but they will encounter swarm of issues there (listed below).

Version-Release number of selected component (if applicable):
satellite-6.4.0-10
katello-3.7.0-4

Steps to Reproduce:
1. Create new user with role "Viewer"
2. Try to navigate to Content -> Subscriptions
3. Access $HOST/subscriptions directly

Actual results:
There is no menu entry.

Page can be accessed directly, but there are many problems with it:

  • Manage Manifest button is active. I am able to try to upload new manifest (it will fail with $HOST/katello/api/v2/organizations/61/subscriptions/upload returning 403 and cryptic "[object Object]" message in UI)
  • If there is already manifest file uploaded, error message "[object Object]" (see screenshot) will be displayed
  • If there is already manifest file uploaded, "Add Subscription" button is active. If I click it, I will see familiar "[object Object]" error message and screen asking me to import manifest.
  • Following API resources return 403 (maybe they should?): * $HOST/api/v2/settings/content_disconnected * $HOST/katello/api/v2/organizations/<id>/upstream_subscriptions
  • When trying to upload or delete manifest, following error is displayed in browser console:
    Uncaught (in promise) TypeError: Cannot read property 'humanized' of undefined
    at t.renderTaskStartedToast (katello-d1f89136d25e6dcc686b.js:1)
    at katello-d1f89136d25e6dcc686b.js:1
Actions #1

Updated by Andrew Kofink about 6 years ago

  • Target version set to Katello 3.9.0
  • Triaged changed from No to Yes
Actions #2

Updated by Jonathon Turel about 6 years ago

  • Assignee set to Jonathon Turel
  • Priority changed from Normal to High
Actions #3

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7662 added
Actions #4

Updated by Anonymous about 6 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF