Bug 1974737 - Migration plan name length in the "Migration plan" wizard is not validated
Summary: Migration plan name length in the "Migration plan" wizard is not validated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.5.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: 1.6.0
Assignee: Ian
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-22 12:22 UTC by Xin jiang
Modified: 2021-09-29 14:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 14:34:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1290 0 None None None 2021-08-25 17:21:41 UTC
Red Hat Product Errata RHSA-2021:3694 0 None None None 2021-09-29 14:34:55 UTC

Description Xin jiang 2021-06-22 12:22:44 UTC
Description of problem:
there is no validation against  the migplan name length, I can input migplan name with more than 100 characters. And it didn't create migplan, I didn't see any error from UI or backend.

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

How reproducible:
Always

Steps to Reproduce:
1. When creating migplan, fill in name longer than 100 characters. 
2. Click Next


Actual results:
It was stuck in loading for a long time when clicking Next to navigate to Namespace page 

Expected results:
It should valide migplan name when you fill in a longer name

Additional info:

Comment 1 Erik Nelson 2021-06-23 13:13:40 UTC
This should be an easy one to knock out for a future release.

Comment 5 Xin jiang 2021-09-01 05:00:15 UTC
verified with MTC 1.6.0. It will validate the length of migplan name and report warning "The plan name can be between 3 and 63 characters long" 
Image:
registry.redhat.io/rhmtc/openshift-migration-ui-rhel8@sha256:3e46187b2ff8c76c4022b418631d07eb40a347d15012d061c079e643a4188b6d

Comment 7 errata-xmlrpc 2021-09-29 14:34:47 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 (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix 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-2021:3694


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