Bug 1952837

Summary: Pressing a key in the Migration plan resources section causes the MTC web console to crash
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: UIAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: high Docs Contact: Avital Pinnick <apinnick>
Priority: unspecified    
Version: 1.4.3CC: ernelson, ibolton, rjohnson, whu, xjiang
Target Milestone: ---   
Target Release: 1.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-28 05:52:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sergio 2021-04-23 10:29:01 UTC
Description of problem:
When we run a migration and we click on the "Migration plan resources" section, if we press a key in the keyboard the UI crashes.

Version-Release number of selected component (if applicable):
MTC 1.4.3
Browser: chrome 89

How reproducible:
Always

Steps to Reproduce:
1. Create an empty namespace in the source cluster
2. Create a migration plan for the empty namespace and execute the migration
3. In the UI, click on the migration plan
4. Click now on "Migration plan resources" to expand the resources that belong to this migration
5. Press a key on the keyboard (notice that the focus is on the "Type to search" filter by default.)

Actual results:
The UI crashes and becomes blank.

This error is displayed in the browser's console:
app.bundle.js:2 Uncaught TypeError: e.name.toLowerCase is not a function
    at app.bundle.js:2
    at Array.map (<anonymous>)
    at y (app.bundle.js:2)
    at t.PlanDebugPage (app.bundle.js:2)
    at ci (app.bundle.js:2)
    at Fi (app.bundle.js:2)
    at Br (app.bundle.js:2)
    at bs (app.bundle.js:2)
    at Ms (app.bundle.js:2)
    at Os (app.bundle.js:2)


Expected results:
The UI should not crash and the resources should be filtered properly.

Additional info:
If we remove the focus from the "Type to search" filter the crash does not happen.

Comment 5 Xin jiang 2021-04-25 08:50:11 UTC
verified with MTC 1.4.3.

Image:
registry.redhat.io/rhmtc/openshift-migration-ui-rhel8@sha256:7fd53cc1b3e215736b4138abec2537adce01335babd108c4ccb6d5c5e6e63345

Comment 10 errata-xmlrpc 2021-04-28 05:52:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Migration Toolkit for Containers (MTC) tool image release advisory 1.4.3), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1439