Bug 1315580
Summary: | Unable to modify user roles if administrator has more than 5 locations assigned | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | dgupte | ||||
Component: | Users & Roles | Assignee: | Dominik Hlavac Duran <dhlavacd> | ||||
Status: | CLOSED ERRATA | QA Contact: | Jitendra Yejare <jyejare> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.7 | CC: | abalakht, bbuckingham, bkearney, dhlavacd, erinn.looneytriggs, jyejare, ktordeur, oshtaier, satellite6-bugs, sthirugn | ||||
Target Milestone: | Unspecified | Keywords: | Reopened, Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1327373 (view as bug list) | Environment: | |||||
Last Closed: | 2018-02-21 16:33:14 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1327373, 1373844 | ||||||
Attachments: |
|
Description
dgupte
2016-03-08 06:33:52 UTC
This issue can be resolved by applying the following workaround from upstream http://projects.theforeman.org/issues/13515 /usr/share/foreman/app/services/association_authorizer.rb ~~~ def self.permission_name(klass, permission, should_raise_exception) + klass = klass.first if klass.is_a?(Array) + klass = klass.class unless klass.is_a?(Class) suffix = klass.respond_to?(:permission_name) ? klass.permission_name : klass.to_s.underscore.pluralize permission = "#{permission}_#{suffix}" if Permission.where(:name => permission).present? permission elsif should_raise_exception raise Foreman::Exception.new(N_('unknown permission %s'), permission) else false end end ~~~ Created attachment 1148220 [details]
[Failed QA] Screenshot Attached
Attempt to Verify this issue in Sat 6.2 snap 8.2 The issue is still reproducible. The error on attempt to create a filter is thrown as 'Oops, we're sorry but something went wrong ERF42-5434 [Foreman::Exception]: unknown permission view_taxonomies'. Moving it to Failed QA. Screenshot Attached. Upstream bug assigned to tcaspy 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/RHBA-2016:1500 Verified ! @ Satellite 6.2.7 Tested this issue on Satellite 6.2.7, and confirming that this is fixed in 6.2. Test Steps: 1. Created multiple locations within Satellite 2. Created a TestAdmin user configured with 6 or more locations selected 3. Logged in satellite as the TestAdmin user 4. Selected an existing role(also tried by creating new role), and attempted to create a New Filter. Result: As expected, the Filter is created without any error message. Note: Just need to test on 6.3 before changing the status to Verified. Verified both for 6.2.10 and 6.3 by automation scripts. Filter is created successfully 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:0336 |