Project

General

Profile

Bug #25648

Unable to delete filters on a Role using system admin

Added by Marek Hulán 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
Authorization
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:

Version-Release number of selected component (if applicable):
Build:Satellite 6.5.0 Snap 6

How reproducible:
Always from WebUI

Steps to Reproduce:
1. Create a User with system admin
2. Login with system admin user, try to clone a role and delete any filter from role
3.

Actual results:
Unable to delete the Filters on the cloned role. With error

Filter not found Please try to update your request

Expected results:
System admin should be able to delete the filters on roles

Additional info:
2018-12-04T02:05:02 [I|app|] Started DELETE "/filters/316?role_id=30-aaa" for 10.67.117.3 at 2018-12-04 02:05:02 -0500
2018-12-04T02:05:02 [I|app|cd911] Processing by FiltersController#destroy as HTML
2018-12-04T02:05:02 [I|app|cd911] Parameters: {"authenticity_token"=>"2neQLqJSRz997DBy6KoRvDVExRm7gTAbBZ6ULjF8egl+wl43QAQmkNpnsBHpLoXfled3SqpJYCrdqZjCo9OoGA==", "role_id"=>"30-aaa", "id"=>"316"}
2018-12-04T02:05:02 [I|app|cd911] Current user set to sa (regular)
2018-12-04T02:05:02 [I|app|cd911] Rendering common/404.html.erb within layouts/application
2018-12-04T02:05:02 [I|app|cd911] Rendered common/404.html.erb within layouts/application (1.5ms)
2018-12-04T02:05:02 [I|app|cd911] Rendered layouts/_application_content.html.erb (0.5ms)
2018-12-04T02:05:02 [I|app|cd911] Rendering layouts/base.html.erb
2018-12-04T02:05:02 [I|app|cd911] Rendered layouts/base.html.erb (2.2ms)
2018-12-04T02:05:02 [I|app|cd911] Completed 404 Not Found in 64ms (Views: 6.3ms | ActiveRecord: 15.9ms)
2018-12-04T02:05:03 [I|app|] Started GET "/notification_recipients" for 10.67.117.3 at 2018-12-04 02:05:03 -0500
2018-12-04T02:05:03 [I|app|ffe3e] Processing by NotificationRecipientsController#index as JSON
2018-12-04T02:05:03 [I|app|ffe3e] Current user set to sa (regular)
2018-12-04T02:05:03 [I|app|ffe3e] Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 8.4ms)

Associated revisions

Revision 65f476e1 (diff)
Added by Ondřej Pražák 3 months ago

Fixes #25648 - Delete filters as system admin

History

#1 Updated by Tomer Brisker 3 months ago

  • Triaged changed from No to Yes
  • Category set to Authorization
  • Subject changed from Unable to delete filters on a Role using system admin to Unable to delete filters on a Role using system admin

#2 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ondřej Pražák
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6330 added

#3 Updated by Marek Hulán 3 months ago

  • Fixed in Releases 1.21.0 added

#4 Updated by Ondřej Pražák 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF