Project

General

Profile

Actions

Bug #22834

closed

JS Error: s.included.ids is undefined - on choosing REX on host collection ERRATA dialog

Added by Thomas McKay over 6 years ago. Updated over 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1553017

Description of problem:
Similar to https://bugzilla.redhat.com/show_bug.cgi?id=1532605 but it was fixed only for the "Package Installation, Removal, and Update" action. Need to fix the same for the 'Errata Installation' action.

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

How reproducible:
100%

Steps to Reproduce:
1. define a host collection
2. navigate to host collection and choose e.g. "Errata Installation" action
3. [open up the browser console to spot the error,] from any dropdown, try to choose remote execution or rex (customize first)

Actual results:
js traceback - s.included.ids is undefined

Expected results:
no errors, dialog and rex just works

Additional info:

it looks like we need to change `/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-errata-modal.controller.js` like this:

Replace

formData.hostIds = selectedHosts.included.ids.join(',');

with

if (selectedHosts.included.ids) {
formData.hostIds = selectedHosts.included.ids.join(',');
}

Actions

Also available in: Atom PDF