Project

General

Profile

Bug #4960

undefined method `host_classes_path' when editing filter on "host class"

Added by Dominic Cleal about 5 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Create a (role) filter with the "Host class" edit_classes permission, then go back and edit it and it will fail:

ActionView::Template::Error (undefined method `host_classes_path' for #<#<Class:0x007f6facb28860>:0x007f6fb95070f0>):
    45: 
    46:         <%= autocomplete_f f, :search,
    47:                            :disabled => f.object.unlimited?,
    48:                            :path => resource_path(f.object.resource_type), :control_group_id => 'search_group' %>
    49:       </div>
    50:     </div>
    51: 
  app/helpers/filters_helper.rb:28:in `resource_path'
  app/views/filters/_form.html.erb:48:in `block in _app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/helpers/layout_helper.rb:248:in `form_for'
  app/views/filters/_form.html.erb:3:in `_app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/views/filters/edit.html.erb:3:in `_app_views_filters_edit_html_erb__944164940854790638_70058919033000'
  app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'

Related issues

Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Associated revisions

Revision 127958bd (diff)
Added by Tomáš Strachota about 5 years ago

Fixes #4960 - undefined method when editing filter without a UI controller

History

#1 Updated by Dominic Cleal about 5 years ago

  • Blocks Tracker #4552: New permissions/authorization system issues added

#2 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) set to 4

#3 Updated by Tomáš Strachota about 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Tomáš Strachota

#4 Updated by Tomáš Strachota about 5 years ago

  • Status changed from Assigned to Ready For Testing

#5 Updated by Dominic Cleal about 5 years ago

  • Target version set to 1.8.4

#6 Updated by Anonymous about 5 years ago

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

Also available in: Atom PDF