Bug 1378188 - Service : ordering service catalog shows error if the dialog in use is very long
Summary: Service : ordering service catalog shows error if the dialog in use is very long
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: cfme-future
Assignee: eclarizi
QA Contact: Dmitry Misharov
URL:
Whiteboard: service:dialog
Depends On:
Blocks: 1379695
TreeView+ depends on / blocked
 
Reported: 2016-09-21 18:55 UTC by Shveta
Modified: 2018-09-20 11:54 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1379695 (view as bug list)
Environment:
Last Closed: 2018-09-20 11:54:39 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)
error (71.54 KB, image/png)
2016-09-21 19:17 UTC, Shveta
no flags Details

Description Shveta 2016-09-21 18:55:47 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Created a dialog with lot of components to verify a bug https://bugzilla.redhat.com/show_bug.cgi?id=1339323
2. Used this dialog in a catalog item
3. Unable to order the service catalog .Shows error in production logs 

Actual results:


Expected results:


Additional info:
Logs 
=================
[----] I, [2016-09-21T14:20:16.236680 #4456:1056dc8]  INFO -- :   Parameters: {"pressed"=>"svc_catalog_provision", "id"=>"9"}
[----] F, [2016-09-21T14:20:16.366184 #4456:1056dc8] FATAL -- : Error caught: [NoMethodError] undefined method `first' for nil:NilClass
/var/www/miq/vmdb/app/models/dialog_field_sorted_item.rb:81:in `raw_values'
/var/www/miq/vmdb/app/models/dialog_field_sorted_item.rb:62:in `trigger_automate_value_updates'
/var/www/miq/vmdb/app/models/dialog_field_sorted_item.rb:42:in `get_default_value'
/var/www/miq/vmdb/app/models/dialog_field_tag_control.rb:3:in `initialize_with_values'
/var/www/miq/vmdb/app/models/dialog.rb:83:in `block in init_fields_with_values'
/var/www/miq/vmdb/app/models/dialog.rb:83:in `each'
/var/www/miq/vmdb/app/models/dialog.rb:83:in `init_fields_with_values'
/var/www/miq/vmdb/app/models/resource_action_workflow.rb:107:in `load_dialog'
/var/www/miq/vmdb/app/models/resource_action_workflow.rb:12:in `initialize'
/var/www/miq/vmdb/app/controllers/application_controller/dialog_runner.rb:146:in `new'
/var/www/miq/vmdb/app/controllers/application_controller/dialog_runner.rb:146:in `dialog_initialize'
/var/www/miq/vmdb/app/controllers/catalog_controller.rb:564:in `svc_catalog_provision'
/var/www/miq/vmdb/app/controllers/catalog_controller.rb:63:in `x_button'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/gems/activerecord-5.0.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.0.1/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/routing/route_set.rb:725: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.1/lib/rack/etag.rb:25:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/conditional_get.rb:38:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/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/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/rh/cfme-gemset/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.0.1/lib/rails/engine.rb:522:in `call'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/configuration.rb:224:in `call'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:561:in `handle_request'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:406:in `process_client'
/opt/rh/rh-ruby23/root/usr/share/gems/gems/puma-3.3.0/lib/puma/server.rb:271:in `block in run'
/opt/rh/rh-ruby23/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-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'
[----] I, [2016-09-21T14:20:16.367870 #4456:1056dc8]  INFO -- :   Rendered layouts/_exception_contents.html.haml (0.3ms)
[----] I, [2016-09-21T14:20:16.368556 #4456:1056dc8]  INFO -- : Completed 200 OK in 132ms (Views: 1.8ms | ActiveRecord: 0.0ms)
[----] I, [2016-09-21T14:20:19.085114 #4456:10546a4]  INFO -- : Started POST "/dashboard/window_sizes?height=909" for 127.0.0.1 at 2016-09-21 14:20:19 -0400
[----] I, [2016-09-21T14:20:19.088872 #4456:10546a4]  INFO -- : Processing by DashboardController#window_sizes as JS
[----] I, [2016-09-21T14:20:19.089089 #4456:10546a4]  INFO -- :   Parameters: {"height"=>"909"}
[----] I, [2016-09-21T14:20:19.105089 #4456:10546a4]  INFO -- : Completed 200 OK in 16ms (ActiveRecord: 0.0ms)

Comment 2 Greg McCullough 2016-09-21 19:12:35 UTC
Please provider an export of the dialog.

Comment 3 Shveta 2016-09-21 19:17:04 UTC
Created attachment 1203444 [details]
error

Exporting this dialog shows error.
Appliance : https://10.8.199.228

Comment 5 Greg McCullough 2016-09-22 21:33:30 UTC
Erik - The dialog cause issues is named dialog_Jko27ggqfB.  It is the only dialog that I could not export.  Guessing that be related to the other issue being reported here.

Comment 7 eclarizi 2016-09-27 15:17:10 UTC
The appliance appears to be offline? Can we get another one set up with the dialog in question?

Comment 8 Josh Carter 2018-09-20 11:54:39 UTC
Bug Closure

Dear customer, 

The CloudForms team is reviewing the current CloudForms Bug(defect) backlog in order to target engineering efforts. We are closing any bugs for versions that no longer have an active errata stream or that have hit their age limit. We are committing to better management of the backlog as we move forward. If you have an bug that you are still able to reproduce on a current version of CloudForms please open a new bug. 

If you have any concerns about this, please let us know.

Thanks and regards!


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