Bug 2060894 - Preceding/Trailing Whitespaces In Form Elements on the add page
Summary: Preceding/Trailing Whitespaces In Form Elements on the add page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.0
Assignee: Avik Kundu
QA Contact: Debsmita Santra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-04 13:12 UTC by Avik Kundu
Modified: 2022-08-10 10:52 UTC (History)
4 users (show)

Fixed In Version: Openshift 4.11
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:52:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Invalid Git URL (107.60 KB, image/png)
2022-03-04 13:12 UTC, Avik Kundu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11075 0 None open Bug 2060894: Preceding/Trailing Whitespaces In Form Elements on the add page 2022-03-04 13:30:44 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:52:30 UTC

Description Avik Kundu 2022-03-04 13:12:26 UTC
Created attachment 1864136 [details]
Invalid Git URL

There was a discussion around the following scenario that prompted the need to track this as a bug. This is not likely to be handled in the current release due to time constraints and lack of consistency across the rest of the app.

Scenario

The user accesses the 'Import from git' form and copy/pastes a link into the git repo field. This paste comes with an extra whitespace (before or after). The user doesn't recognize this issue and attempts to move on with the form. They see the following without any context that there is an additional whitespace:

  

Desired Outcome?

There are a few ways we can try to address this issue:

Trim the whitespace (on field blur / form save) so the issue isn't apparent / ever a problem
Provide a clearer message to the user (less desirable, as it's a programmatically fixable error)
Prevent invalid characters (in this case whitespace) into the field (aka trim on paste)

Consideration Footnotes

There is concern about uniquely handling this issue on this one form for the dev console. We should look to make a more generic UX stance on how to handle these issues and isolate the portions of the application that can suffer from this same problem.
We should take extra care not to trim whitespace in special fields that use whitespace legitimately (such as secret and config map data)




cc [~sdoyle], [~gamore], Steve Speicher

Comment 3 Debsmita Santra 2022-03-10 16:56:39 UTC
verified this on 4.11.0-0.nightly-2022-03-09-235248

Comment 4 Christoph Jerolimov 2022-03-17 10:33:55 UTC
Hello Jira ¯\_(ツ)_/¯

Comment 6 errata-xmlrpc 2022-08-10 10:52:11 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: OpenShift Container Platform 4.11.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-2022:5069


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