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 about 6 years ago. Updated almost 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 #1

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7231 added
Actions #2

Updated by Andrew Kofink about 6 years ago

  • Subject changed from JS Error: s.included.ids is undefined - on choosing REX on host collection ERRATA dialog to JS Error: s.included.ids is undefined - on choosing REX on host collection ERRATA dialog
  • translation missing: en.field_release set to 284
Actions #3

Updated by Thomas McKay about 6 years ago

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

Also available in: Atom PDF