Description of problem:Error when trying to sort list of Hosts under Infrastructure Provider Version-Release number of selected component (if applicable): How reproducible:100% Steps to Reproduce: 1. Go to Infrastructure summary screen 2. click on link to view Hosts under selected Provider 3. Try to sort list of hosts in list view, this works fine when switching to grid or tile view. Looks like link on headers in list view is being built incorrectly. Try other relationships on the Infra & Cloud Provider screens. Actual results: ActionController::RoutingError (No route matches [POST] "/ext_management_system/show/1"): /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/logger.rb:32:in `call_app' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/logger.rb:18:in `call' quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.5) lib/rack/methodoverride.rb:21:in `call' rack (1.4.5) lib/rack/runtime.rb:17:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.5) lib/rack/lock.rb:15:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_dispatch/middleware/static.rb:63:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/engine.rb:484:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/application.rb:231:in `call' rack (1.4.5) lib/rack/content_length.rb:14:in `call' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/rack/log_tailer.rb:17:in `call' thin (1.3.1) lib/thin/connection.rb:80:in `block in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in `catch' thin (1.3.1) lib/thin/connection.rb:78:in `pre_process' thin (1.3.1) lib/thin/connection.rb:53:in `process' thin (1.3.1) lib/thin/connection.rb:38:in `receive_data' eventmachine (1.0.7) lib/eventmachine.rb:187:in `run_machine' eventmachine (1.0.7) lib/eventmachine.rb:187:in `run' thin (1.3.1) lib/thin/backends/base.rb:61:in `start' thin (1.3.1) lib/thin/server.rb:159:in `start' rack (1.4.5) lib/rack/handler/thin.rb:13:in `run' rack (1.4.5) lib/rack/server.rb:268:in `start' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands/server.rb:70:in `start' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:55:in `block in <top (required)>' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:50:in `tap' /home/hkataria/.rvm/gems/ruby-2.0.0-p598/bundler/gems/rails-8f014fba21f9/railties/lib/rails/commands.rb:50:in `<top (required)>' script/rails:6:in `require' script/rails:6:in `<top (required)>' ruby-debug-ide (0.4.28) lib/ruby-debug-ide.rb:86:in `debug_load' ruby-debug-ide (0.4.28) lib/ruby-debug-ide.rb:86:in `debug_program' ruby-debug-ide (0.4.28) bin/rdebug-ide:121:in `<top (required)>' -e:1:in `load' -e:1:in `<main>' Expected results: Additional info:
*** Bug 1217031 has been marked as a duplicate of this bug. ***
https://github.com/ManageIQ/manageiq/pull/2857
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/9f46371256185f3c3044608320a650fd4812e1d2 commit 9f46371256185f3c3044608320a650fd4812e1d2 Author: Milan Zazrivec <mzazrivec> AuthorDate: Wed May 6 16:27:04 2015 +0200 Commit: Milan Zazrivec <mzazrivec> CommitDate: Mon May 11 16:55:56 2015 +0200 Fix sorting when displaying provider's hosts (list view) We need to post the ajax request to correct url: post /ems_infra/show/... post /ems_cloud/show/... rather than: post /ext_management_system/show/... https://bugzilla.redhat.com/show_bug.cgi?id=1215272 vmdb/app/views/layouts/_dhtmlxgrid.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Sorting hosts under provider using list view now works on 5.4.0.0.26. I tried to click and sort by each header and it appears to be sorting correctly and I don't see errors in production.log.
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://rhn.redhat.com/errata/RHBA-2015-1100.html