Bug 1838065

Summary: Missing application name length validation
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:40:29 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:

Description Christoph Jerolimov 2020-05-20 12:37:56 UTC
Description of problem (by Gajanan More):
When we exceed the limit of characters in the Name field or the Application Name field, it shows the same error which is 'Error "Invalid value: "nationalparks-py1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111": must be no more than 63 characters" for field "metadata.labels".' We can improve the error message and make it more simplified so that user can understand the actual error and where the error is. The current UI does not show where or which field has the actual error. We can change the default field color to red color so that it will be easier to understand to users. 


Version-Release number of selected component:
Gajanan was using 4.3.0-0.nightly-2019-12-09-035405 build while testing.

This still happens on 4.5-nightly.


How reproducible:
Always

Steps to Reproduce:
1. Switch into the Developer console
2. Select Add+ > Container Image
3. Under General > Application Name select "Create Application"
4. Enter a long application name into the text field "Name". (More than 63 characters)

Actual results:
Input was accepted and an error message was shown when pressing "Create"

Expected results:
Form should be validated before the user can press "Create".

Comment 3 Gajanan More 2020-05-28 03:39:32 UTC
I have validated the bugzilla on:
Build: 4.5.0-0.nightly-2020-05-27-202943
Browser: Google Chrome Version 81.0.4044.129
Marking this as verified.

Comment 4 errata-xmlrpc 2020-07-13 17:40:29 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/RHBA-2020:2409

Comment 5 Mia Boyle 2022-12-30 05:42:05 UTC Comment hidden (spam)
Comment 6 Isabel Lord 2023-02-06 09:03:55 UTC Comment hidden (spam)