Bug #5553
closedFilter create/edit breaks if the resource type does not have a corresponding controller with 'autocomplete_search'
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.
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'
Updated by Anonymous over 10 years ago
- Has duplicate Bug #5578: Cant set permissions on specific resource types added
Updated by Anonymous over 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.8.3
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
Updated by Dominic Cleal over 10 years ago
- Translation missing: en.field_release set to 16
Updated by Anonymous over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 0c82622ce4cde6ac64d833d1fd96e52339ab60b0.
Updated by Bryan Kearney over 10 years ago
- Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107710