Bug 797098

Summary: The applications with invalid app name can also be created successfully.
Product: OKD Reporter: Yujie Zhang <yujzhang>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: mfisher, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-02 21:56:34 UTC Type: ---
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
Invaid application none

Description Yujie Zhang 2012-02-24 09:31:56 UTC
Description of problem:

The applications with invalid app name can also be created successfully.

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

devenv_1634

How reproducible:always


Steps to Reproduce:
1.Go to Openshift website and login
2.Go to app/console/applications page
3.Try to create an application with invalid name like "ss@"
  
Actual results:

Error message will came out,but the application was created successfully.

Expected results:

The application should not be created successfully.

Additional info:

Comment 1 Yujie Zhang 2012-02-24 09:35:25 UTC
Created attachment 565548 [details]
Invaid application

Comment 2 Yujie Zhang 2012-02-24 09:37:14 UTC
Details see in attachment.The details and the link of application with invalid are not available,but it did exist in My Applications list.

Comment 3 Yujie Zhang 2012-02-27 07:31:58 UTC
Testing this bug on devenv_1642,the result is still not expected.

When I try to create an application with invalid name,error message will came out:

Name Application name is required and cannot be blank

I think this is not expected and will confuse users.Please check this issue again.

Comment 4 Clayton Coleman 2012-02-27 16:22:51 UTC
API is not validating the name, it looks like.  Maybe backend code too?

Comment 5 Krishna Raman 2012-02-27 23:47:38 UTC
Fixed in dd288584c35f86e960610dfdcbf0ccdbe5f303fd

Comment 6 Yujie Zhang 2012-02-28 06:03:32 UTC
Verify this bug on devenv_1648,rhc-site-0.87.9-1.el6_2.noarch, it is fixed now.