Bug 1371361

Summary: Need a warning when selected default IS name exceeded the max-length on add-to-project page
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, jokerman, mmccomas, pweil
Target Milestone: ---   
Target Release: ---   
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: 2016-10-14 15:47:38 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:
Attachments:
Description Flags
origin_bug_screenshot none

Description XiaochuanWang 2016-08-30 03:27:46 UTC
Created attachment 1195596 [details]
origin_bug_screenshot

Description of problem:
Go to add-to-project page, choose "Deploy Image". For Image Stream Tag, select an IS name exceed maxlength(24) and a tag from project "openshift". The input box "Name" is invalid and "Create" button is disabled, user needs to know what's wrong with the default value.

Version-Release number of selected component (if applicable):
openshift v3.3.0.27

How reproducible:
Always

Steps to Reproduce:
1. Go to add-to-project page, choose "Deploy Image"
2. select an IS name which exceed the maxlength(24) , choose any tag
Eg. jboss-datagrid65-openshift, jboss-webserver30-tomcat7-openshift, 


Actual results:
1) When input box "*Name" is filled by default value "jboss-datagrid65-openshift", "Create" button is disabled due to length restriction. Should prompt warning info once the name length exceedes 24
(The warning message shows up only when you begin to remove some characters of the name, it's a little late for user, should prompt warning info once the name length is exceed 24, which should be like the warning when string begins with a number)
Please refer to the screenshot
2) All default IS names from project "openshift" should be valid


Expected results:
1) There should be a warning message when value is invalid for create.
2) The max-length should allow all default IS names to be valid

Additional info:

Comment 2 Samuel Padgett 2016-10-05 13:34:15 UTC
This was fixed in 3.3.0, but status was not updated.

Comment 3 Yadan Pei 2016-10-08 03:00:21 UTC
Verification steps:

1. Go to add-to-project page, choose "Deploy Image"
2. select an IS name which exceed the maxlength(24) , choose any tag
Eg. jboss-datagrid65-openshift, jboss-webserver30-tomcat7-openshift, 

When selected default IS name exceeded the max-length(24), "Name" will be trimmed to 24 characters and Create button is enabled also

Move to VERIFIED