Created attachment 1272595 [details] screenshot Description of problem: When I open Timelines page for any EC2 availability zone, I get error page with "User 'admin' is not authorized to access 'Availability Zone' record id '423' [availability_zone/show]" error. See screenshot. cfme logs don't contain any errors. javascript console contains only NS_ERROR_UNEXPECTED: error. Version-Release number of selected component (if applicable): 5.8.0.10 How reproducible: 100% Steps to Reproduce: 1. Provision instance in EC2 and stop/start it to generate some events. 2. Go to Availability Zone this instance belongs to 3. Try to open Timelines for this Availability Zone Actual results: Error page Expected results: Timelines page should be displayed Additional info: BreadCrumb contains typo - "Availability Zones >> Availabilty Zones". maybe it is related somehow.
Can you, please, export a DB for me with the Timeline data? Or can you let me see this on your system?
appliance's ip - 10.8.197.185
I found the backtrace on the appliance, Ievgen provided: [----] F, [2017-04-19T09:50:51.548505 #2938:134d734] FATAL -- : Error caught: [RuntimeError] Invalid input /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/mixins/checked_id_mixin.rb:60:in `find_record_with_rbac' /opt/rh/cfme-gemset/bundler/gems/manageiq-ui-classic-d32ec1b1bfc2/app/controllers/availability_zone_controller.rb:59:in `show' /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' This is a regression caused by recend RBAC fixes
actually it's a regression of the GenericMixins works https://github.com/ManageIQ/manageiq-ui-classic/pull/1080
Ievgen: Fixed manually on the apliance, can you, please, confirm?
Martin, yes, I confirm that your patch fixes the issue. Thnx.
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/32671c9950512d31c70a62a6e95f8875526f6a8f commit 32671c9950512d31c70a62a6e95f8875526f6a8f Author: Martin Povolny <mpovolny> AuthorDate: Wed Apr 19 16:04:22 2017 +0200 Commit: Martin Povolny <mpovolny> CommitDate: Wed Apr 19 16:04:22 2017 +0200 Fix AvailabilityZone broken by GenericShow refactoring. https://bugzilla.redhat.com/show_bug.cgi?id=1443529 app/controllers/availability_zone_controller.rb | 1 - 1 file changed, 1 deletion(-)
verified in 5.9.0.2.20171010190026_0413a06