Bug 1985711

Summary: Registry image input isn't trimming at the start of input
Product: OpenShift Container Platform Reporter: Matan Schatzman <mschatzm>
Component: Console Kubevirt PluginAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: YaoJinbo <jyao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, gouyang, ycui
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:40:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error message none

Description Matan Schatzman 2021-07-25 07:17:33 UTC
Created attachment 1805387 [details]
error message

Description of problem:
Image input isn't trimming spaces at the begging of the text

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


How reproducible:
100%

Steps to Reproduce:
1.Start a VM wizard
2.Select a template and click next
3.Select boot source of import via registry
4.Try to enter a space at the beginning of the container image input

Actual results:
Show error message

Expected results:
Trim the unneeded spaces

Additional info:

Comment 2 Guohua Ouyang 2021-08-12 06:25:22 UTC
It's fixed for the 'import via registry', but not 'import via URL'.

Matan, can we do this to URL as well?

Comment 3 YaoJinbo 2021-08-19 09:33:14 UTC
Reproduced on OCP 4.8 and verified on latest master.Image input trim the unneeded spaces

1.Start a VM wizard and select a template
2.Select boot source of import via registry
3.Enter a space at the beginning of the container image input

Image input trim spaces at the begging of the text.

Comment 6 errata-xmlrpc 2021-10-18 17:40:56 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: OpenShift Container Platform 4.9.0 bug fix and security 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:3759

Comment 7 Red Hat Bugzilla 2023-09-15 01:12:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days