Bug 802732

Summary: Met "NoMethodError" while trying to create an app with an existing namespace
Product: OKD Reporter: Xiaoli Tian <xtian>
Component: WebsiteAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.x   
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-04-13 18:30:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xiaoli Tian 2012-03-13 11:14:30 UTC
Description of problem:
While trying to create an app with an existing namespace(by typing an existing namespace in the wizard) from the app create wizard, there's no meaningful error message but 
"undefined method `upcase' for ["Namespace 'domx21' is already in use. Please choose another."]:Array
NoMethodError in Applications#create"
Showing /var/www/stickshift/site/app/views/application_types/show.html.haml where line #14 raised:

Version-Release number of selected component (if applicable):
devenv_1659
rhc-site-0.88.4-1.el6_2.noarch

How reproducible:
Always

Steps to Reproduce:
1.Log in an devenv instance with a new user
2.Go to /app/console/application_types 
3.Try to create an app via wizard 
4.Type an existing namespace, 
5.Create 
  
Actual results:
Failed with error ""undefined method `upcase' for ["Namespace 'domx21' is already in use. Please choose another."]:Array"

Expected results:
It should show proper error message

Additional info:

Comment 1 Clayton Coleman 2012-03-13 18:31:28 UTC
Was poorly merging errors in applications_controller.

Comment 2 Xiaoli Tian 2012-03-14 07:51:50 UTC
Found the fix in devenv_1661,move it to ON_QA.

Comment 3 Xiaoli Tian 2012-03-14 07:53:50 UTC
Verified it on devenv_1661, could show error message well now like :
Namespace 'domx21' is already in use. Please choose another.