Bug 802732 - Met "NoMethodError" while trying to create an app with an existing namespace
Summary: Met "NoMethodError" while trying to create an app with an existing namespace
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-13 11:14 UTC by Xiaoli Tian
Modified: 2015-05-15 01:05 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 18:30:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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