Bug 1798116 - [MIG-UI] Malformed URL error if there is a space at the end of the cluster URL
Summary: [MIG-UI] Malformed URL error if there is a space at the end of the cluster URL
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.4.0
Assignee: Sam Lucidi
QA Contact: Sergio
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-04 15:34 UTC by Sergio
Modified: 2020-05-28 11:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-28 11:09:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:2326 0 None None None 2020-05-28 11:10:20 UTC

Description Sergio 2020-02-04 15:34:55 UTC
Description of problem:
When a new cluster is added to App Migration, if a blank space is added at the end of the cluster URL when filling in the form, we get a 'Connection failed. Message: "The `url` is malformed.", Reason: "Malformed"' error when we save the cluster.

Version-Release number of selected component (if applicable):
CAM 1.1
UI:
    imageID: registry.stage.redhat.io/rhcam-1-1/openshift-migration-ui-rhel8@sha256:ed16db50ffd6614d8f654449bf29003b82d4d5da420419add00fd5ec5b1fd79b
Controller:
    imageID: registry.stage.redhat.io/rhcam-1-1/openshift-migration-controller-rhel8@sha256:db3247ffbaaace242cfd3d530994ccdeb0a39f4e3b46e43f7f3870279cf65d1a


How reproducible:
Always

Steps to Reproduce:
1. Click on "Add" button in the clusters row in order to add a new cluster to App Migration

2. Fill in the form.

Cluster Name: "myclustername"
Url: "https://my.cluster.url.com.with.a.space.at.the.end "
Service account token: "myaccounttoken"

3. Click on "Add cluster"

Actual results:
After clicking "Add cluster" the cluster should be added. But we get this error

'Connection failed. Message: "The `url` is malformed.", Reason: "Malformed"'

Expected results:
The space at the end of the URL should not break the Add cluster process.

Additional info:

Comment 1 Erik Nelson 2020-03-19 20:55:06 UTC
https://github.com/konveyor/mig-ui/pull/754

Comment 5 Sergio 2020-05-07 09:44:14 UTC
Verified in CAM stage 1.2

Comment 7 errata-xmlrpc 2020-05-28 11:09:55 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, 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/RHEA-2020:2326


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