Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-32523

Host form - Update of host without hostname fail in ugly error

XMLWordPrintable

    • None
    • None
    • None
    • None
    • Yes

      How reproducible:

      always

      Is this issue a regression from an earlier version:

      not sure.

      Steps to Reproduce:

      1. Go to edit host page

      2. Remove hostname

      3. submit form

      4. See the error replacing current form

      Actual behavior:

      ActionController::UrlGenerationError in Hosts#update Showing /home/lstejska/projects/foreman/app/views/hosts/_form.html.erb where line #142 raised: No route matches {:action=>"index", :controller=>"react", :id=>#}, possible unmatched constraints: [:id] Did you mean? host_details_page_url Trace of template inclusion: # Rails.root: /home/lstejska/projects/foreman Application Trace config/initializers/routing_hash_for.rb:15:in `block in define_url_helper' app/helpers/application_helper.rb:67:in `current_host_details_path' app/views/hosts/_form.html.erb:142 app/helpers/form_helper.rb:292:in `form_for' app/views/hosts/_form.html.erb:7 app/models/taxonomy.rb:81:in `block (2 levels) in as_taxonomy' app/models/concerns/foreman/thread_session.rb:195:in `as_location' app/models/taxonomy.rb:80:in `block in as_taxonomy' app/models/concerns/foreman/thread_session.rb:154:in `as_org' app/models/taxonomy.rb:79:in `as_taxonomy' app/views/hosts/_form.html.erb:6 app/views/hosts/edit.html.erb:13 app/controllers/application_controller.rb:315:in `process_error' app/controllers/hosts_controller.rb:124:in `block in update' app/models/taxonomy.rb:74:in `block in no_taxonomy_scope' app/models/taxonomy.rb:81:in `block (2 levels) in as_taxonomy' app/models/concerns/foreman/thread_session.rb:195:in `as_location' app/models/taxonomy.rb:80:in `block in as_taxonomy' app/models/concerns/foreman/thread_session.rb:154:in `as_org' app/models/taxonomy.rb:79:in `as_taxonomy' app/models/taxonomy.rb:73:in `no_taxonomy_scope' app/controllers/hosts_controller.rb:115:in `update' app/controllers/concerns/foreman/controller/timezone.rb:10:in `set_timezone' app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller' lib/foreman/middleware/libvirt_connection_cleaner.rb:9:in `call' lib/foreman/middleware/telemetry.rb:10:in `call' lib/foreman/middleware/logging_context_session.rb:22:in `call' lib/foreman/middleware/logging_context_request.rb:11:in `call' Framework Trace actionpack (7.0.8.7) lib/action_dispatch/journey/formatter.rb:44:in `path' actionpack (7.0.8.7) lib/action_dispatch/routing/route_set.rb:824:in `url_for' actionpack (7.0.8.7) lib/action_dispatch/routing/route_set.rb:271:in `call' actionview (7.0.8.7) lib/action_view/helpers/capture_helper.rb:45:in `block in capture' actionview (7.0.8.7) lib/action_view/helpers/capture_helper.rb:209:in `with_output_buffer' actionview (7.0.8.7) lib/action_view/helpers/capture_helper.rb:45:in `capture' actionview (7.0.8.7) lib/action_view/helpers/form_helper.rb:769:in `form_with' actionview (7.0.8.7) lib/action_view/helpers/form_helper.rb:460:in `form_for' actionview (7.0.8.7) lib/action_view/base.rb:244:in `public_send' actionview (7.0.8.7) lib/action_view/base.rb:244:in `_run' actionview (7.0.8.7) lib/action_view/template.rb:157:in `block in render' activesupport (7.0.8.7) lib/active_support/notifications.rb:208:in `instrument' actionview (7.0.8.7) lib/action_view/template.rb:361:in `instrument_render_template' actionview (7.0.8.7) lib/action_view/template.rb:155:in `render' actionview (7.0.8.7) lib/action_view/renderer/partial_renderer.rb:251:in `block in render_partial_template' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `block in instrument' activesupport (7.0.8.7) lib/active_support/notifications/instrumenter.rb:24:in `instrument' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `instrument' actionview (7.0.8.7) lib/action_view/renderer/partial_renderer.rb:246:in `render_partial_template' actionview (7.0.8.7) lib/action_view/renderer/partial_renderer.rb:237:in `render' actionview (7.0.8.7) lib/action_view/renderer/renderer.rb:81:in `render_partial_to_object' actionview (7.0.8.7) lib/action_view/renderer/renderer.rb:27:in `render_to_object' actionview (7.0.8.7) lib/action_view/renderer/renderer.rb:22:in `render' actionview (7.0.8.7) lib/action_view/helpers/rendering_helper.rb:37:in `block in render' actionview (7.0.8.7) lib/action_view/base.rb:270:in `in_rendering_context' actionview (7.0.8.7) lib/action_view/helpers/rendering_helper.rb:33:in `render' actionview (7.0.8.7) lib/action_view/base.rb:244:in `public_send' actionview (7.0.8.7) lib/action_view/base.rb:244:in `_run' actionview (7.0.8.7) lib/action_view/template.rb:157:in `block in render' activesupport (7.0.8.7) lib/active_support/notifications.rb:208:in `instrument' actionview (7.0.8.7) lib/action_view/template.rb:361:in `instrument_render_template' actionview (7.0.8.7) lib/action_view/template.rb:155:in `render' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:65:in `block (2 levels) in render_template' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `block in instrument' activesupport (7.0.8.7) lib/active_support/notifications/instrumenter.rb:24:in `instrument' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `instrument' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:60:in `block in render_template' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:75:in `block in render_with_layout' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `block in instrument' activesupport (7.0.8.7) lib/active_support/notifications/instrumenter.rb:24:in `instrument' activesupport (7.0.8.7) lib/active_support/notifications.rb:206:in `instrument' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:74:in `render_with_layout' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:59:in `render_template' actionview (7.0.8.7) lib/action_view/renderer/template_renderer.rb:11:in `render' actionview (7.0.8.7) lib/action_view/renderer/renderer.rb:61:in 

      Expected behavior:
      Nice error or form validation

      Business Impact / Additional info:

       

              rh-ee-ajangir Arvind Jangir
              rhn-engineering-lstejska Leos Stejskal
              Nakul Pathak Nakul Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: