Bug 813152 - "undefined method `name' for nil:NilClass" w/ Cloud Resource Zone corner case
"undefined method `name' for nil:NilClass" w/ Cloud Resource Zone corner case
Status: NEW
Product: CloudForms Cloud Engine
Classification: Red Hat
Component: aeolus-conductor (Show other bugs)
1.0.0
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Angus Thomas
Rehana
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-17 01:47 EDT by Aziza Karol
Modified: 2014-01-05 13:36 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
err (176.55 KB, image/png)
2012-04-17 01:48 EDT, Aziza Karol
no flags Details
rails.log (18.79 KB, application/octet-stream)
2012-04-17 01:54 EDT, Aziza Karol
no flags Details

  None (edit)
Description Aziza Karol 2012-04-17 01:47:48 EDT
Description of problem:


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


How reproducible:


Steps to Reproduce:
1.First add a cloud resource zone with a blank name. Proper message that name can't be blank is displayed which is correct.
2.Then give a name  to cloud resource zone and  save. 


Actual results:
"undefined method `name' for nil:NilClass"  is displayed in UI. see attached screenshot.


note: if you directly add CRZ without empty name, CRZ gets added.This happens only when we first try to add CRZ with blank name.


rails.log:
Rendered layouts/_nav_history.html.haml (3.3ms)
Rendered pools/_section_header.html.haml (0.6ms)
Rendered layouts/_error_messages.html.haml (5.9ms)
Rendered pools/_form.html.haml (12.0ms)
Rendered pools/_new.html.haml (13.5ms)
Rendered pools/new.html.haml within layouts/application (191.7ms)
undefined method `name' for nil:NilClass
/usr/share/aeolus-conductor/app/views/pools/_form.html.haml:14:in `_app_views_pools__form_html_haml___159100478_69909707071240_942910'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `call'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers.rb:255:in `with_tabs'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:167:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:92:in `capture'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/helpers/form_helper.rb:320:in `form_for_without_haml'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:169:in `form_for_without_haml_xss'
 /usr/lib/ruby/gems/1.8/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:132:in `form_for'
 /usr/share/aeolus-conductor/app/views/pools/_form.html.haml:1:in `_app_views_pools__form_html_haml___159100478_69909707071240_942910'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `send'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:135:in `render'
 /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/notifications.rb:54:in `instrument'
 /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_view/template.rb:127:in `render'

attached  rails.log

Expected results:
No err should be displayed.


Additional info:
rpm -qa | grep aeolus
aeolus-conductor-doc-0.8.9-1.el6.noarch
aeolus-conductor-0.8.9-1.el6.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch
aeolus-all-0.8.9-1.el6.noarch
aeolus-configure-2.5.3-1.el6.noarch
rubygem-aeolus-cli-0.3.1-1.el6.noarch
aeolus-conductor-daemons-0.8.9-1.el6.noarch
Comment 1 Aziza Karol 2012-04-17 01:48:10 EDT
Created attachment 577880 [details]
err
Comment 2 Aziza Karol 2012-04-17 01:54:41 EDT
Created attachment 577883 [details]
rails.log

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