Bug 1722799
Summary: | Unclear / incomplete error message while trying to promote a content view with a user that has insufficient permissions | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Michael Schwabe <mschwabe> | |
Component: | Content Views | Assignee: | Ian Ballou <iballou> | |
Status: | CLOSED ERRATA | QA Contact: | Danny Synk <dsynk> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 6.5.0 | CC: | bkearney, fperalta, ivo.schindler, jjeffers, pdwyer, pjasbuti, satellite6-bugs, sokeeffe, swachira, zhunting | |
Target Milestone: | 6.9.0 | Keywords: | EasyFix, FastFix, Reproducer, Triaged, UserExperience | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | tfm-rubygem-katello-3.18.1.7-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1943272 (view as bug list) | Environment: | ||
Last Closed: | 2021-04-21 13:11:48 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: |
Description
Michael Schwabe
2019-06-21 10:52:26 UTC
this bug still exists in satellite 6.5.3... Created redmine issue https://projects.theforeman.org/issues/31836 from this bug Upstream bug assigned to iballou Upstream bug assigned to iballou Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31836 has been resolved. Steps to Test: - Deploy Satellite 6.9, snap 16. - Sync repositories, add them to a content view, and publish the content view. - Create a Lifecycle Environment Path with a "dev" lifecycle environment. - Create the "updater" user. - Add the "Viewer" role to the "updater" user. - Create the "updater" role. - Add the following filters to the "updater" role: - "Lifecycle Environments" > edit_lifecycle_environments - "Content Views" > view_content_views, edit_content_views, promote_or_remove_content_views - Attempt to promote the content view to the "dev" environment as the "updater" user: ~~~ [root@dhcp-3-161 ~]# hammer -u updater content-view version promote --content-view-id 2 --to-lifecycle-environment-id 2 --id 2 --organization-id 1 [Foreman] Password for updater: Could not promote the content view: Could not find content_view_version resource with id 2. Potential missing permissions: promote_or_remove_content_views, promote_or_remove_content_views_to_environments ~~~ Expected Results: - The missing permission, "promote_or_remove_content_views_to_environments" is listed in the error message. Actual Results: - The missing permission, "promote_or_remove_content_views_to_environments" is listed in the error message. The problem description of this BZ suggests listing all required permissions in the error message; however, the current behavior lists all required permissions from only the relevant Resource Type (in this case, Lifecycle Environments). This narrower scope strikes me as more useful to a user attempting to troubleshoot this issue than listing all required permissions across all Resource Types. Verified in Satellite 6.9, snap 16 (tfm-rubygem-katello-3.18.1.11-1.el7sat.noarch). 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 (Moderate: Satellite 6.9 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-2021:1313 |