Project

General

Profile

Bug #25010

Unhelpful error message when user with Viewer role visits Subscriptions page

Added by Walden Raines about 1 year ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

When user with Viewer role accesses Content -> Subscriptions page for organization with manifest, error with unhelpful message appears: "[object Object]".

Version-Release number of selected component (if applicable):
Satellite 6.4.0 snap 22
satellite-6.4.0-14
katello-3.7.0-7
tfm-rubygem-katello-3.7.0.28-1

Steps to Reproduce:
1. Upload manifest to organization
2. Create new user with role "Viewer" (or any other role that has "view_subscriptions" in Subscription resource and "view_organizations" in Organization resource). Make sure it can access organization with manifest
3. Login as that user
4. Open Content -> Subscriptions

Expected results:
There is no error message, or error box contains helpful / actionable message.


Related issues

Has duplicate Katello - Bug #25118: Manage Manifest button is active for user with Viewer roleDuplicate

Associated revisions

Revision 85c62631 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Revision dd80a90d (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Revision e51eabe9 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

store active permissions in Katello redux store

Revision a5912c45 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Fix typo

Revision 8dadf006 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Don't show add or delete buttons without proper permission

Revision e884628e (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Don't allow edits of Entitlements field without permissions

Revision d36fbbf1 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Manage Manifest modal manages permissions

Revision 800e114d (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Add <br /> before delete button

Revision cdc1db53 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

fix styling

Revision 15db0a10 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Add controller test

Revision 735c83b5 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Switch to user.can? to check permissions

Revision 53715649 (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

update snapshots

Revision 00480e3e (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Revision a20a3feb (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

Revision 975b299d (diff)
Added by Jeremy Lenz 3 months ago

Fixes #25010: Permissions on Subscriptions page

History

#1 Updated by John Mitsch about 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.10.0
  • Assignee set to Walden Raines

#2 Updated by The Foreman Bot about 1 year ago

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

#3 Updated by Christine Fouant 12 months ago

  • Target version changed from Katello 3.10.0 to Katello 3.11.0

#4 Updated by John Mitsch 10 months ago

  • Target version changed from Katello 3.11.0 to Katello 3.12.0

#5 Updated by Walden Raines 8 months ago

  • Pull request deleted (https://github.com/Katello/katello/pull/7735)

#6 Updated by Walden Raines 8 months ago

  • Status changed from Ready For Testing to Assigned

#7 Updated by Chris Roberts 7 months ago

  • Target version changed from Katello 3.12.0 to Katello Backlog

#8 Updated by Chris Roberts 7 months ago

Moving to backlog based on discussions during Katello triage.

#9 Updated by Jeremy Lenz 4 months ago

  • Assignee changed from Walden Raines to Jeremy Lenz

#10 Updated by Walden Raines 4 months ago

  • Has duplicate Bug #25118: Manage Manifest button is active for user with Viewer role added

#11 Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8252 added

#12 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 3.14.0 added

#13 Updated by Jeremy Lenz 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF