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:
https://github.com/konveyor/mig-ui/pull/754
Verified in CAM stage 1.2
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