Bug 1952837 - Pressing a key in the Migration plan resources section causes the MTC web console to crash
Summary: Pressing a key in the Migration plan resources section causes the MTC web con...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.4.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 1.4.3
Assignee: John Matthews
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-23 10:29 UTC by Sergio
Modified: 2021-04-28 05:52 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-28 05:52:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1182 0 None open Bug 1952837: fix search string identifier 2021-04-23 11:10:17 UTC
Red Hat Product Errata RHBA-2021:1439 0 None None None 2021-04-28 05:52:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.