Created attachment 1164426 [details] error Description of problem: Version-Release number of selected component (if applicable): Version: 5.6.0.9-rc2.20160531154046_b4e2f6d How reproducible: 100% Steps to Reproduce: 1.Navigate to Cloud Intelligence->Reports 2.In the Import/Export accordion,click Custom Reports. 3.In the import area, Click Upload(without choosing any report) Actual results: Unexpected error when clicked on Upload Button. Expected results: No error should display. Additional info: Production Log: [----] I, [2016-06-03T05:49:09.824140 #2996:bd9854] INFO -- : Started POST "/report/upload?typ=import" for 127.0.0.1 at 2016-06-03 05:49:09 -0400 [----] I, [2016-06-03T05:49:09.826653 #2996:bd9854] INFO -- : Processing by ReportController#upload as HTML [----] I, [2016-06-03T05:49:09.826839 #2996:bd9854] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"yqidaXxWlQ3oTvE/rTmPuf3uq7cu6tEcAnDOzvmbP+On80ptkczaalUEwGlTV0mhb/TRE7rqB4WH2RyPFBfPRw==", "upload"=>{"file"=>""}, "commit"=>"Upload", "typ"=>"import"} [----] F, [2016-06-03T05:49:09.975828 #2996:bd9854] FATAL -- : Error caught: [NoMethodError] undefined method `tempfile' for "":String /var/www/miq/vmdb/app/controllers/report_controller.rb:69:in `upload' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/abstract_controller/base.rb:181:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/rendering.rb:30:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:126:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:126:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:455:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:455:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:101:in `__run_callbacks__' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/abstract_controller/callbacks.rb:19:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/rescue.rb:20:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/notifications.rb:164:in `block in instrument' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/notifications/instrumenter.rb:21:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/notifications.rb:164:in `instrument' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activerecord/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/abstract_controller/base.rb:126:in `process' /opt/rh/cfme-gemset/gems/actionview-5.0.0.rc1/lib/action_view/rendering.rb:30:in `process' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal.rb:190:in `dispatch' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_controller/metal.rb:262:in `dispatch' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/routing/route_set.rb:50:in `dispatch' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/routing/route_set.rb:32:in `serve' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/journey/router.rb:39:in `block in serve' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/journey/router.rb:26:in `each' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/journey/router.rb:26:in `serve' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/routing/route_set.rb:725:in `call' /opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!' /opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call' /opt/rh/cfme-gemset/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in `call' /opt/rh/cfme-gemset/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/etag.rb:25:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/conditional_get.rb:38:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/head.rb:12:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/session/abstract/id.rb:222:in `context' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/session/abstract/id.rb:216:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/cookies.rb:613:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:97:in `__run_callbacks__' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:750:in `_run_call_callbacks' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/callbacks.rb:90:in `run_callbacks' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/callbacks.rb:36:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' /opt/rh/cfme-gemset/gems/railties-5.0.0.rc1/lib/rails/rack/logger.rb:36:in `call_app' /opt/rh/cfme-gemset/gems/railties-5.0.0.rc1/lib/rails/rack/logger.rb:26:in `call' /opt/rh/cfme-gemset/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/request_id.rb:24:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/method_override.rb:22:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/runtime.rb:22:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' /opt/rh/cfme-gemset/bundler/gems/rails-41f47090a7cd/actionpack/lib/action_dispatch/middleware/executor.rb:12:in `call' /opt/rh/cfme-gemset/gems/rack-2.0.0.rc1/lib/rack/sendfile.rb:111:in `call' /opt/rh/cfme-gemset/gems/railties-5.0.0.rc1/lib/rails/engine.rb:522:in `call' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `call' /opt/rh/rh-ruby22/root/usr/share/gems/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread' /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' [----] I, [2016-06-03T05:49:09.977882 #2996:bd9854] INFO -- : Rendering layouts/exception.html.haml within layouts/application [----] I, [2016-06-03T05:49:09.978529 #2996:bd9854] INFO -- : Rendered layouts/_exception_contents.html.haml (0.2ms) [----] I, [2016-06-03T05:49:09.978816 #2996:bd9854] INFO -- : Rendered layouts/exception.html.haml within layouts/application (0.7ms) [----] I, [2016-06-03T05:49:09.979261 #2996:bd9854] INFO -- : Rendered layouts/_doctype.html.haml (0.1ms) [----] I, [2016-06-03T05:49:09.980801 #2996:bd9854] INFO -- : Rendered stylesheets/_template50.html.haml (0.1ms) [----] I, [2016-06-03T05:49:09.983591 #2996:bd9854] INFO -- : Rendered layouts/_i18n_js.html.haml (1.9ms) [----] I, [2016-06-03T05:49:10.000269 #2996:bd9854] INFO -- : Rendered layouts/_user_options.html.haml (5.1ms) [----] I, [2016-06-03T05:49:10.000782 #2996:bd9854] INFO -- : Rendered layouts/_spinner.html.haml (0.1ms) [----] I, [2016-06-03T05:49:10.001184 #2996:bd9854] INFO -- : Rendered layouts/_lightbox_panel.html.haml (0.1ms) [----] I, [2016-06-03T05:49:10.001342 #2996:bd9854] INFO -- : Rendered layouts/_header.html.haml (17.3ms) [----] I, [2016-06-03T05:49:10.021292 #2996:bd9854] INFO -- : Rendered layouts/_vertical_navbar.html.haml (19.4ms) [----] I, [2016-06-03T05:49:10.021866 #2996:bd9854] INFO -- : Rendered layouts/_breadcrumbs.html.haml (0.1ms) [----] I, [2016-06-03T05:49:10.022199 #2996:bd9854] INFO -- : Rendered layouts/_content.html.haml (20.6ms) [----] I, [2016-06-03T05:49:10.022753 #2996:bd9854] INFO -- : Rendered layouts/_adv_search.html.haml (0.1ms) [----] I, [2016-06-03T05:49:10.022934 #2996:bd9854] INFO -- : Rendered layouts/_footer.html.haml (0.5ms) [----] I, [2016-06-03T05:49:10.023515 #2996:bd9854] INFO -- : Completed 500 Internal Server Error in 196ms (Views: 46.6ms | ActiveRecord: 0.0ms)
Jozef, Can you look into this one, let me know if you need help. Thanks, ~Harpreet
https://github.com/ManageIQ/manageiq/pull/9200
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/bd5e4e83973073cc1c80e2609fd519d7ed73a3a1 commit bd5e4e83973073cc1c80e2609fd519d7ed73a3a1 Author: Jozef Zigmund <jzigmund> AuthorDate: Tue Jun 14 18:30:37 2016 +0200 Commit: Jozef Zigmund <jzigmund> CommitDate: Tue Jun 14 18:32:34 2016 +0200 Disable Upload button on Import/Export Reports page when no file is chosen https://bugzilla.redhat.com/show_bug.cgi?id=1342451 app/views/report/_export_custom_reports.html.haml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
Verified in version 5.7.0.3.20160927165516_075d0f3