Bug 1584172 - [Upstream] Unexpected error on requests page
Summary: [Upstream] Unexpected error on requests page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.10.0
Assignee: Zita Nemeckova
QA Contact: Ganesh Hubale
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-30 12:29 UTC by Vatsal Parekh
Modified: 2019-02-07 23:03 UTC (History)
9 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-07 23:03:00 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (72.75 KB, image/png)
2018-05-30 12:29 UTC, Vatsal Parekh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:0212 0 None None None 2019-02-07 23:03:08 UTC

Description Vatsal Parekh 2018-05-30 12:29:03 UTC
Created attachment 1445828 [details]
screenshot

Description of problem:
On the detail page of a request, clicking on request detail tabs like 'Purpose', 'Catalog' throws "Unexpected error encountered"
(Tested on KubeVirt provider with OCP 3.10)

Production log for the same

----] I, [2018-05-30T08:17:23.798563 #2188:fb818c]  INFO -- : Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
[----] I, [2018-05-30T08:17:24.219579 #2198:dee9f0]  INFO -- : Started GET "/api/notifications?expand=resources&attributes=details&sort_by=id&sort_order=desc&limit=100" for 127.0.0.1 at 2018-05-30 08:17:24 -0400
[----] I, [2018-05-30T08:17:24.224414 #2198:dee9f0]  INFO -- : Processing by Api::NotificationsController#index as JSON
[----] I, [2018-05-30T08:17:24.224587 #2198:dee9f0]  INFO -- :   Parameters: {"expand"=>"resources", "attributes"=>"details", "sort_by"=>"id", "sort_order"=>"desc", "limit"=>"100"}
[----] I, [2018-05-30T08:17:24.292734 #2198:dee9f0]  INFO -- : Completed 200 OK in 68ms (Views: 0.2ms | ActiveRecord: 11.6ms)
[----] I, [2018-05-30T08:17:24.451455 #2212:3e7cba8]  INFO -- : Started GET "/ws/notifications" [WebSocket] for 127.0.0.1 at 2018-05-30 08:17:24 -0400
[----] I, [2018-05-30T08:17:24.451636 #2212:3e7cba8]  INFO -- : Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: WebSocket)
[----] I, [2018-05-30T08:17:24.456106 #2212:4070dd8]  INFO -- : Registered connection (Z2lkOi8vdm1kYi9Vc2VyLzE)
[----] I, [2018-05-30T08:17:25.640900 #2212:4184a08]  INFO -- : NotificationChannel is transmitting the subscription confirmation
[----] I, [2018-05-30T08:17:25.641503 #2212:4184a08]  INFO -- : NotificationChannel is streaming from notifications_1
[----] I, [2018-05-30T08:18:11.878108 #2188:fb8b28]  INFO -- : Started POST "/miq_request/prov_field_changed?tab_id=service" for 127.0.0.1 at 2018-05-30 08:18:11 -0400
[----] I, [2018-05-30T08:18:11.886705 #2188:fb8b28]  INFO -- : Processing by MiqRequestController#prov_field_changed as JS
[----] I, [2018-05-30T08:18:11.886930 #2188:fb8b28]  INFO -- :   Parameters: {"tab_id"=>"service"}
[----] F, [2018-05-30T08:18:11.922580 #2188:fb8b28] FATAL -- : Error caught: [NoMethodError] undefined method `[]=' for nil:NilClass
/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-f6128de3631d/app/controllers/application_controller/miq_request_methods.rb:16:in `prov_field_changed'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/abstract_controller/base.rb:188:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/rendering.rb:30:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:126:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:455:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:90:in `run_callbacks'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/abstract_controller/callbacks.rb:19:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/rescue.rb:20:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/notifications.rb:164:in `block in instrument'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/notifications.rb:164:in `instrument'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.7/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/abstract_controller/base.rb:126:in `process'
/usr/local/lib/ruby/gems/2.3.0/gems/actionview-5.0.7/lib/action_view/rendering.rb:30:in `process'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal.rb:190:in `dispatch'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_controller/metal.rb:262:in `dispatch'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/journey/router.rb:26:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/journey/router.rb:26:in `serve'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/routing/route_set.rb:727:in `call'
/usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-graphql-1062af56c948/lib/manageiq/graphql/rest_api_proxy.rb:18:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:38:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/callbacks.rb:90:in `run_callbacks'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/railties-5.0.7/lib/rails/rack/logger.rb:36:in `call_app'
/usr/local/lib/ruby/gems/2.3.0/gems/railties-5.0.7/lib/rails/rack/logger.rb:26:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/activesupport-5.0.7/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/actionpack-5.0.7/lib/action_dispatch/middleware/executor.rb:12:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/railties-5.0.7/lib/rails/engine.rb:522:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/puma-3.7.1/lib/puma/configuration.rb:232:in `call'
/usr/local/lib/ruby/gems/2.3.0/gems/puma-3.7.1/lib/puma/server.rb:578:in `handle_request'
/usr/local/lib/ruby/gems/2.3.0/gems/puma-3.7.1/lib/puma/server.rb:415:in `process_client'
/usr/local/lib/ruby/gems/2.3.0/gems/puma-3.7.1/lib/puma/server.rb:275:in `block in run'
/usr/local/lib/ruby/gems/2.3.0/gems/puma-3.7.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
[----] I, [2018-05-30T08:18:11.925817 #2188:fb8b28]  INFO -- :   Rendered /usr/local/lib/ruby/gems/2.3.0/bundler/gems/manageiq-ui-classic-f6128de3631d/app/views/layouts/_exception_contents.html.haml (0.4ms)
[----] I, [2018-05-30T08:18:11.927351 #2188:fb8b28]  INFO -- : Completed 200 OK in 40ms (Views: 3.6ms | ActiveRecord: 3.3ms)

Version-Release number of selected component (if applicable):
Master on (30-5-19)

How reproducible:
100%

Steps to Reproduce:
1.Go to a service request
2.Click on details tab like Purpose, Catalog or Hardware
3.

Actual results:
"Unexpected error encountered"

Expected results:
Should show the details

Additional info:
Check the attached screenshot

Comment 3 CFME Bot 2018-06-08 11:54:07 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/3ac17d4227120d51b8cc2e4b35e4afcf8ef35564
commit 3ac17d4227120d51b8cc2e4b35e4afcf8ef35564
Author:     Zita Nemeckova <znemecko>
AuthorDate: Thu Jun  7 08:04:10 2018 -0400
Commit:     Zita Nemeckova <znemecko>
CommitDate: Thu Jun  7 08:04:10 2018 -0400

    Fix Request Info for Catalog Items

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1584172

    Data was never copied from session to @options when miq_request/prov_field_changed?tab_id=* request was fired

 app/controllers/miq_request_controller.rb | 6 +-
 1 file changed, 4 insertions(+), 2 deletions(-)

Comment 4 Vatsal Parekh 2018-07-16 11:56:29 UTC
Able to verify this on 5.10.0.4

Comment 5 errata-xmlrpc 2019-02-07 23:03:00 UTC
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-2019:0212


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