Project

General

Profile

Actions

Bug #5553

closed

Filter create/edit breaks if the resource type does not have a corresponding controller with 'autocomplete_search'

Added by Eric Helms over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If a permission set is created and specifies a resource type that does not contain an autocomplete route, the permissions aren't loaded by the UI and leaves the user in a weird broken state that they are unaware of. The line that leads to this is - https://github.com/theforeman/foreman/blob/develop/app/helpers/filters_helper.rb#L14 which throws a backend error since the first argument is nil.


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #5578: Cant set permissions on specific resource types Closed05/05/2014Actions
Copied to Foreman - Feature #5753: Allow customisation of autocomplete_search path for resources in filter create/editClosed05/02/2014Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Category set to Web Interface
Actions #2

Updated by Eric Helms over 10 years ago

Backtrace:

NoMethodError (undefined method `+' for nil:NilClass):
app/helpers/filters_helper.rb:16:in `search_path'
app/controllers/permissions_controller.rb:8:in `index'
actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.17) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.17) lib/action_controller/metal/rendering.rb:10:in `process_action'

Actions #3

Updated by Anonymous over 10 years ago

  • Has duplicate Bug #5578: Cant set permissions on specific resource types added
Actions #4

Updated by Anonymous over 10 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.8.3
Actions #5

Updated by Dominic Cleal over 10 years ago

  • Copied to Feature #5753: Allow customisation of autocomplete_search path for resources in filter create/edit added
Actions #6

Updated by Dominic Cleal over 10 years ago

  • Translation missing: en.field_release set to 16
Actions #7

Updated by Anonymous over 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #8

Updated by Bryan Kearney over 10 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107710
Actions

Also available in: Atom PDF