Bug 1442751

Summary: FATAL -- : Error caught: while changing page per items on Customization Templates
Product: Red Hat CloudForms Management Engine Reporter: Niyaz Akhtar Ansari <nansari>
Component: UI - OPSAssignee: Jozef Zigmund <jzigmund>
Status: CLOSED CURRENTRELEASE QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:view
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1445378 (view as bug list) Environment:
Last Closed: 2018-03-06 14:35:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1445378    
Attachments:
Description Flags
screenshot none

Description Niyaz Akhtar Ansari 2017-04-17 11:57:30 UTC
Created attachment 1272055 [details]
screenshot

Description of problem:


Version-Release number of selected component (if applicable):
Version 5.8.0.10-beta1.20170411212748_e47d319 

How reproducible:
100%

Steps to Reproduce:
1.Navigate to compute -> Infrastructure -> PXE
2.Select Customization Templates accordion -> click on Examples (read only)
3.See the bottom of the page(Check all/page per items filter drop down missing)
4.Refresh the browser and See at the bottom of the page
5.Try to change page per items. 

Actual results:
It displays the page per items and checks all bottom page setting after refreshed the browser.

Getting an error in production log when changing the page per item.

Expected results:


Additional info:
The same issue happens on System Image Types page.


Production log:


[----] I, [2017-04-17T07:52:46.859593 #2955:1677f40] INFO -- : Started GET "/api" for 127.0.0.1 at 2017-04-17 07:52:46 -0400
[----] I, [2017-04-17T07:52:46.867091 #2955:1677f40] INFO -- : Processing by Api::ApiController#index as JSON
[----] I, [2017-04-17T07:52:46.908214 #2955:1677f40] INFO -- : Completed 200 OK in 41ms (Views: 0.3ms | ActiveRecord: 1.9ms)
[----] I, [2017-04-17T07:52:56.334787 #2946:1684cb8] INFO -- : Started POST "/pxe/explorer?ppsetting=10" for 127.0.0.1 at 2017-04-17 07:52:56 -0400
[----] I, [2017-04-17T07:52:56.347182 #2946:1684cb8] INFO -- : Processing by PxeController#explorer as JS
[----] I, [2017-04-17T07:52:56.347370 #2946:1684cb8] INFO -- : Parameters: {"ppsetting"=>"10"}
[----] I, [2017-04-17T07:52:56.501518 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_info_msg.html.haml (0.1ms)
[----] I, [2017-04-17T07:52:56.502064 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_flash_msg.html.haml (0.1ms)
[----] I, [2017-04-17T07:52:56.510806 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/gtl/_list.html.haml (8.5ms)
[----] I, [2017-04-17T07:52:56.510956 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_x_gtl.html.haml (9.9ms)
[----] I, [2017-04-17T07:52:56.512909 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/shared/_master_toggle.html.haml (0.1ms)
[----] I, [2017-04-17T07:52:56.513771 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_paging_bar.html.haml (0.1ms)
[----] I, [2017-04-17T07:52:56.514136 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_x_form_buttons.html.haml (0.1ms)
[----] I, [2017-04-17T07:52:56.514482 #2946:1684cb8] INFO -- : Rendered /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/views/layouts/_x_pagingcontrols.html.haml (2.1ms)
[----] F, [2017-04-17T07:52:56.515904 #2946:1684cb8] FATAL -- : Error caught: [AbstractController::DoubleRenderError] Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/rendering.rb:35:in `render'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/opt/rh/rh-ruby23/root/usr/share/ruby/benchmark.rb:308:in `realtime'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/opt/rh/cfme-gemset/gems/activerecord-5.0.2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:43:in `render'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/pxe_controller.rb:54:in `explorer'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/base.rb:188:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:126:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:455:in `call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/rescue.rb:20:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
/opt/rh/cfme-gemset/gems/activerecord-5.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/abstract_controller/base.rb:126:in `process'
/opt/rh/cfme-gemset/gems/actionview-5.0.2/lib/action_view/rendering.rb:30:in `process'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal.rb:190:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_controller/metal.rb:262:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/routing/route_set.rb:32:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:39:in `block in serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:26:in `each'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/journey/router.rb:26:in `serve'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/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.2/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
/opt/rh/cfme-gemset/gems/activesupport-5.0.2/lib/active_support/callbacks.rb:90:in `run_callbacks'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/rh/cfme-gemset/gems/railties-5.0.2/lib/rails/rack/logger.rb:36:in `call_app'
/opt/rh/cfme-gemset/gems/railties-5.0.2/lib/rails/rack/logger.rb:26:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/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.2/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/cfme-gemset/gems/actionpack-5.0.2/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.2/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'
[----] I, [2017-04-17T07:52:56.516746 #2946:1684cb8] INFO -- : Completed 500 Internal Server Error in 169ms (Views: 15.9ms | ActiveRecord: 6.1ms)
[----] F, [2017-04-17T07:52:56.517622 #2946:1684cb8] FATAL -- : 
[----] F, [2017-04-17T07:52:56.517685 #2946:1684cb8] FATAL -- : AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
[----] F, [2017-04-17T07:52:56.517746 #2946:1684cb8] FATAL -- : 
[----] F, [2017-04-17T07:52:56.517816 #2946:1684cb8] FATAL -- : actionpack (5.0.2) lib/action_controller/metal/rendering.rb:35:in `render'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (5.0.2) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/opt/rh/rh-ruby23/root/usr/share/ruby/benchmark.rb:308:in `realtime'
activesupport (5.0.2) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:43:in `render'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/application_controller.rb:131:in `block (2 levels) in render_exception'
actionpack (5.0.2) lib/action_controller/metal/mime_responds.rb:201:in `respond_to'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/application_controller.rb:129:in `render_exception'
/opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/application_controller.rb:124:in `error_handler'
activesupport (5.0.2) lib/active_support/rescuable.rb:89:in `call'
activesupport (5.0.2) lib/active_support/rescuable.rb:89:in `rescue_with_handler'
activesupport (5.0.2) lib/active_support/rescuable.rb:158:in `rescue_with_handler'
actionpack (5.0.2) lib/action_controller/metal/rescue.rb:23:in `rescue in process_action'
actionpack (5.0.2) lib/action_controller/metal/rescue.rb:20:in `process_action'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (5.0.2) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.2) lib/active_support/notifications.rb:164:in `instrument'
actionpack (5.0.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (5.0.2) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
activerecord (5.0.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (5.0.2) lib/abstract_controller/base.rb:126:in `process'
actionview (5.0.2) lib/action_view/rendering.rb:30:in `process'
actionpack (5.0.2) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (5.0.2) lib/action_controller/metal.rb:262:in `dispatch'
actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (5.0.2) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.2) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.2) lib/action_dispatch/routing/route_set.rb:725:in `call'
secure_headers (3.0.3) lib/secure_headers/middleware.rb:10:in `call'
rack (2.0.1) lib/rack/etag.rb:25:in `call'
rack (2.0.1) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.1) lib/rack/head.rb:12:in `call'
rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context'
rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/cookies.rb:613:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
activesupport (5.0.2) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
activesupport (5.0.2) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
activesupport (5.0.2) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.2) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.2) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.2) lib/rails/rack/logger.rb:26:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.1) lib/rack/method_override.rb:22:in `call'
rack (2.0.1) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.2) lib/action_dispatch/middleware/executor.rb:12:in `call'
rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
railties (5.0.2) lib/rails/engine.rb:522:in `call'
puma (3.3.0) lib/puma/configuration.rb:224:in `call'
puma (3.3.0) lib/puma/server.rb:561:in `handle_request'
puma (3.3.0) lib/puma/server.rb:406:in `process_client'
puma (3.3.0) lib/puma/server.rb:271:in `block in run'
puma (3.3.0) lib/puma/thread_pool.rb:111:in `block in spawn_thread'

Comment 4 CFME Bot 2017-04-24 20:44:32 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/c4e64b0bafc1b6a0293e8c5321b9c5764aab0195

commit c4e64b0bafc1b6a0293e8c5321b9c5764aab0195
Author:     Jozef Zigmund <jzigmund>
AuthorDate: Mon Apr 24 15:55:25 2017 +0200
Commit:     Jozef Zigmund <jzigmund>
CommitDate: Mon Apr 24 19:05:22 2017 +0200

    Display paging controls on PXE/Customization Templates list
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1442751

 app/controllers/pxe_controller.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 6 Niyaz Akhtar Ansari 2017-10-24 08:58:49 UTC
Verified in  Version 5.9.0.2.20171010190026_0413a06