Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1232283 - undefined method `strip' for nil:NilClass [host/create] while adding new host
undefined method `strip' for nil:NilClass [host/create] while adding new host
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.4.0
Unspecified Unspecified
high Severity medium
: GA
: 5.5.0
Assigned To: Martin Hradil
Aziza Karol
: ZStream
Depends On:
Blocks: 1255053
  Show dependency treegraph
 
Reported: 2015-06-16 08:27 EDT by Aziza Karol
Modified: 2015-12-08 08:13 EST (History)
5 users (show)

See Also:
Fixed In Version: 5.5.0.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1255053 (view as bug list)
Environment:
Last Closed: 2015-12-08 08:13:58 EST
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 (47.76 KB, image/png)
2015-06-16 08:27 EDT, Aziza Karol
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2551 normal SHIPPED_LIVE Moderate: CFME 5.5.0 bug fixes and enhancement update 2015-12-08 12:58:09 EST

  None (edit)
Description Aziza Karol 2015-06-16 08:27:29 EDT
Created attachment 1039421 [details]
err

Description of problem:


Version-Release number of selected component (if applicable):
observed only in upstream (master.20150612040846_5c763a8)

How reproducible:
100%

Steps to Reproduce:
1.Navigate to infrastructure->hosts->configuration->Add a new host
2.select host platform as "VMware ESX" and click on add.(do not enter any other details)
3.

Actual results:
undefined method `strip' for nil:NilClass [host/create]  displayed in UI. see attached screenshot

Expected results:


Additional info:
production.log
[----] I, [2015-06-16T07:30:57.193235 #2280:c37e90]  INFO -- : Processing by HostController#create as JS
[----] I, [2015-06-16T07:30:57.193471 #2280:c37e90]  INFO -- :   Parameters: {"button"=>"add", "id"=>"new"}
[----] F, [2015-06-16T07:30:57.273365 #2280:c37e90] FATAL -- : Error caught: [NoMethodError] undefined method `strip' for nil:NilClass
/var/www/miq/vmdb/app/controllers/host_controller.rb:962:in `set_record_vars'
/var/www/miq/vmdb/app/controllers/host_controller.rb:269:in `create'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/abstract_controller/base.rb:167:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:568:in `_run__1851516231112864961__process_action__707206482335838961__callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/abstract_controller/callbacks.rb:17:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/notifications.rb:123:in `instrument'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/abstract_controller/base.rb:121:in `process'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/abstract_controller/rendering.rb:45:in `process'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal.rb:203:in `dispatch'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_controller/metal.rb:246:in `block in action'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/routing/route_set.rb:73:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/routing/route_set.rb:36:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/routing/route_set.rb:608:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in `pass'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in `invalidate'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in `call!'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/head.rb:14:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/flash.rb:242:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activerecord/lib/active_record/query_cache.rb:64:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:405:in `_run__2936020811499702436__call__3652593300611659921__callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/rack/logger.rb:32:in `call_app'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/rack/logger.rb:18:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/actionpack/lib/action_dispatch/middleware/static.rb:63:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/engine.rb:484:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/application.rb:231:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/rack/log_tailer.rb:17:in `call'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/handler/thin.rb:13:in `run'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:268:in `start'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands/server.rb:70:in `start'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands.rb:55:in `block in <top (required)>'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands.rb:50:in `tap'
/opt/rubies/ruby-2.0.0-p645/lib/ruby/gems/2.0.0/bundler/gems/rails-4842a8377644/railties/lib/rails/commands.rb:50:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'
[----] I, [2015-06-16T07:30:
Comment 3 CFME Bot 2015-06-25 17:52:44 EDT
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f4eebf691f63e203d1f902f32589692d38dddff8

commit f4eebf691f63e203d1f902f32589692d38dddff8
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Thu Jun 25 17:11:08 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 CFME Bot 2015-08-19 17:18:13 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=baa6fd274859f9f16468047cd1faface15a1f05c

commit baa6fd274859f9f16468047cd1faface15a1f05c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Wed Aug 19 13:20:32 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283
    (cherry picked from commit f4eebf691f63e203d1f902f32589692d38dddff8)
    
    Unclean cherry pick:
    5.4.z:    host.hostname = @edit[:new][:hostname]	# (before now)
    upstream: host.hostname = @edit[:new][:hostname].strip	# (before f4eebf691)
    now:      host.hostname = @edit[:new][:hostname].to_s.strip

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 CFME Bot 2015-08-19 18:07:51 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=baa6fd274859f9f16468047cd1faface15a1f05c

commit baa6fd274859f9f16468047cd1faface15a1f05c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Wed Aug 19 13:20:32 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283
    (cherry picked from commit f4eebf691f63e203d1f902f32589692d38dddff8)
    
    Unclean cherry pick:
    5.4.z:    host.hostname = @edit[:new][:hostname]	# (before now)
    upstream: host.hostname = @edit[:new][:hostname].strip	# (before f4eebf691)
    now:      host.hostname = @edit[:new][:hostname].to_s.strip

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 CFME Bot 2015-08-19 18:28:19 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=baa6fd274859f9f16468047cd1faface15a1f05c

commit baa6fd274859f9f16468047cd1faface15a1f05c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Wed Aug 19 13:20:32 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283
    (cherry picked from commit f4eebf691f63e203d1f902f32589692d38dddff8)
    
    Unclean cherry pick:
    5.4.z:    host.hostname = @edit[:new][:hostname]	# (before now)
    upstream: host.hostname = @edit[:new][:hostname].strip	# (before f4eebf691)
    now:      host.hostname = @edit[:new][:hostname].to_s.strip

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 8 CFME Bot 2015-08-19 19:01:52 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=baa6fd274859f9f16468047cd1faface15a1f05c

commit baa6fd274859f9f16468047cd1faface15a1f05c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Wed Aug 19 13:20:32 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283
    (cherry picked from commit f4eebf691f63e203d1f902f32589692d38dddff8)
    
    Unclean cherry pick:
    5.4.z:    host.hostname = @edit[:new][:hostname]	# (before now)
    upstream: host.hostname = @edit[:new][:hostname].strip	# (before f4eebf691)
    now:      host.hostname = @edit[:new][:hostname].to_s.strip

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 9 CFME Bot 2015-08-19 20:31:30 EDT
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=baa6fd274859f9f16468047cd1faface15a1f05c

commit baa6fd274859f9f16468047cd1faface15a1f05c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Thu Jun 25 17:11:08 2015 +0000
Commit:     Martin Hradil <mhradil@redhat.com>
CommitDate: Wed Aug 19 13:20:32 2015 +0000

    host/create - Don't crash when hostname is nil
    
    Simply adds a to_s to handle nil as an empty string
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1232283
    (cherry picked from commit f4eebf691f63e203d1f902f32589692d38dddff8)
    
    Unclean cherry pick:
    5.4.z:    host.hostname = @edit[:new][:hostname]	# (before now)
    upstream: host.hostname = @edit[:new][:hostname].strip	# (before f4eebf691)
    now:      host.hostname = @edit[:new][:hostname].to_s.strip

 vmdb/app/controllers/host_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 10 Aziza Karol 2015-09-21 01:44:37 EDT
Verified in 5.5.0.1-alpha1.20150915151429_2230bd4
Comment 12 errata-xmlrpc 2015-12-08 08:13:58 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:2551

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