Bug 2163485 - UI fails to render the 'migrations' page: "Cannot read properties of undefined ( reading 'name' )"
Summary: UI fails to render the 'migrations' page: "Cannot read properties of undefin...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.7.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.7.8
Assignee: Ian
QA Contact: mohamed
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-23 16:07 UTC by John Matthews
Modified: 2023-03-23 02:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-23 02:16:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github migtools mig-ui pull 1484 0 None Merged Bug MIG-1299: Add optional chaining for cluster CR objects in pod request 2023-02-20 19:33:00 UTC
Red Hat Product Errata RHSA-2023:1428 0 None None None 2023-03-23 02:18:26 UTC

Description John Matthews 2023-01-23 16:07:37 UTC
Description of problem:

A user is seeing consistent behavior in their environment that each time they click to view the migrations from a MigPlan the UI page fails to render with a javascript exception of:

"Cannot read properties of undefined ( reading 'name' )"

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

Seen on MTC 1.7.6


How reproducible:
Consistent on the user's cluster for each MigPlan.
Seen with 2 different browsers and an incognito window so we don't believe it's related to browser cache.

Observing the behavior via a remote screen share I did see a brief render of the UI page for 'migrations' and ~1 sec after seeing it render, I saw the page go blank from the javascript exception.

Unable to reproduce on our engineering clusters.

Steps to Reproduce:
1. Unknown

Comment 1 John Matthews 2023-01-23 16:14:27 UTC
Engineering was unable to reproduce the bug but a review of the impacted code showed a problem we believe is causing the issue.
@Ian Bolton posted a PR to address: https://github.com/migtools/mig-ui/pull/1484

@QE I do _not_ have clear reproducible steps as we couldn't reproduce in our environment yet this was consistent in user's environment.

The user saw this consistently each time they'd click the link to view the migrations of a given plan.  This was seen on successfully completed Migrations.

Comment 6 mohamed 2023-02-27 16:20:11 UTC
Verified using MTC 1.7.8 prestage

Comment 10 errata-xmlrpc 2023-03-23 02:16:44 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 (Important: Migration Toolkit for Containers (MTC) 1.7.8 security and bug fix update), 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/RHSA-2023:1428


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