Bug 1241557 - The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.
Summary: The length APPLICATION_NAME is not validated in the UI. The creation produces...
Keywords:
Status: CLOSED DUPLICATE of bug 1233503
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jessica Forrester
QA Contact: Yanping Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-09 13:31 UTC by Miheer Salunke
Modified: 2021-06-10 10:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-14 02:06:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Miheer Salunke 2015-07-09 13:31:49 UTC
Description of problem:

The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.

Service name limit is at most 24 chars so we shall check the service name in the template 
Eg-https://github.com/openshift/training/blob/master/beta4/eap6-basic-sti.json#L117
"name": "${APPLICATION_NAME}-https-service",
Here we shall allow ${APPLICATION_NAME} to be of 10 chars only as already 
-https-service is of 14 chars.

From the command line you will get an error.

Failed to create eap6-basic-sti in project xyz-demo1-with-eap6 
Cannot create Service x2345678901-https-service. Service "x2345678901-https-service" is invalid: metadata.name: invalid value 'x2345678901-https-service': must be a DNS 952 label (at most 24 characters, matching regex [a-z]([-a-z0-9]*[a-z0-9])?): e.g. "my-name"

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

How reproducible:
Always

Steps to Reproduce:
1.Give application name whose length is more than 10 chars
2. Use template https://github.com/openshift/training/blob/master/beta4/eap6-basic-sti.json
3. Create an app

Actual results:
Not giving recommendation for app name length or not validating app length

Expected results:
It shall give the recommendations for app name length or validate it

Additional info:

Comment 2 Yanping Zhang 2015-07-14 02:06:10 UTC
It should be the same issue with this bug https://bugzilla.redhat.com/show_bug.cgi?id=1233503. So will close it as duplicated.

*** This bug has been marked as a duplicate of bug 1233503 ***


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