Project

General

Profile

Bug #10412

On clicking 'Device_identifier info_box on add_interface form raises error: Operation FAILED: undefined method `fetch' for nil:NilClass

Added by Marek Hulán over 6 years ago. Updated about 3 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1218504
Description of problem:
when you open add_interface modal window and click on info box, it doesn't expand. Also firebug raises:

"NetworkError: 500 Internal Server Error - https://dhcp201-172.englab.pnq.redhat.com/interfaces/new"

production.log: ===============

2015-05-05 11:54:48 [I] Processing by InterfacesController#new as JS
2015-05-05 11:54:48 [W] Operation FAILED: undefined method `fetch' for nil:NilClass
2015-05-05 11:54:48 [I] Rendered common/500.html.erb (4.8ms)
2015-05-05 11:54:48 [I] Completed 500 Internal Server Error in 22ms (Views: 5.5ms | ActiveRecord: 2.1ms)
2015-05-05 11:55:02 [I] Processing by InterfacesController#new as JS
2015-05-05 11:55:02 [W] Operation FAILED: undefined method `fetch' for nil:NilClass
2015-05-05 11:55:02 [I] Rendered common/500.html.erb (4.7ms)
2015-05-05 11:55:02 [I] Completed 500 Internal Server Error in 22ms (Views: 5.4ms | ActiveRecord: 2.1ms)

Version-Release number of selected component (if applicable):

sat6.1 GA snap2(Satellite-6.1.0-RHEL-7-20150429.2)

How reproducible:
always

Steps to Reproduce:
1. New_host --> add_interface --Device_identifier info_box/tool_tip
2.
3.

Actual results:
Operation FAILED: undefined method `fetch' for nil:NilClass in production.log
Couldn't open Device_identifier info_box on clicking it

Expected results:
on click, Device_identifier info_box should be expanded and no error thrown in logs

Additional info:

Associated revisions

Revision 87800278 (diff)
Added by Marek Hulán over 6 years ago

Fixes #10412 - display interface tooltip after type change

Revision 7f79b53d (diff)
Added by Marek Hulán over 6 years ago

Fixes #10412 - display interface tooltip after type change

(cherry picked from commit 87800278486afe6ab48df0564249863f2527ddc6)

Conflicts:
app/assets/javascripts/host_edit.js

History

#1 Updated by Marek Hulán over 6 years ago

  • Category set to Web Interface
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2361 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal over 6 years ago

  • Legacy Backlogs Release (now unused) set to 50

#4 Updated by Marek Hulán over 6 years ago

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

Also available in: Atom PDF