Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.Go to Compute ->Infrastructure->Virtual Machines->Templates
3.Click on Download pdf button and see evm log
Error in evm log "E, [2018-02-12T00:27:30.583185 #13274:ec6648] ERROR -- : MIQ(vm_infra_controller-download_summary_pdf): Can't access selected records"
See the attached Video.
I am able to see the error. Can you please try with below commands for error evm.log.
[root@dhcp-8-198-228 vmdb]# tail -f log/evm.log | grep --line-buffered E,
[----] E, [2018-05-07T05:43:39.440312 #12089:f906c8] ERROR -- : MIQ(vm_infra_controller-download_summary_pdf): Can't access selected records
New commit detected on ManageIQ/manageiq-ui-classic/master:
Author: Harpreet Kataria <email@example.com>
AuthorDate: Thu Aug 9 15:09:38 2018 -0400
Commit: Harpreet Kataria <firstname.lastname@example.org>
CommitDate: Thu Aug 9 15:09:38 2018 -0400
Fixed to pass in correct class for Template summary screen pdf download
When downloading Template summary to PDF code was passing in incorrct class to find_records_with_rbac mthod, class was being passed in as ManageIQ::Providers::InfraManager::Vm this was causing code to raise an error that was displaye don screen as well as in evm.log. Changed download_summary_pdf method to pass in class from vm_common.
Added spec test to verify that code does not raise any errors.
app/controllers/application_controller.rb | 4 +-
app/controllers/vm_common.rb | 2 +-
spec/controllers/vm_common_spec.rb | 4 +
spec/shared/controllers/shared_example_for_download_summary_pdf.rb | 4 +
4 files changed, 11 insertions(+), 3 deletions(-)
Verified on 126.96.36.199.
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.