Bug 1544317
| Summary: | Error in evm log when clicked on Download pdf button of Template | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Niyaz Akhtar Ansari <nansari> |
| Component: | UI - OPS | Assignee: | Harpreet Kataria <hkataria> |
| Status: | CLOSED ERRATA | QA Contact: | Tasos Papaioannou <tpapaioa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.9.0 | CC: | cpelland, hkataria, lavenel, mpovolny, nansari, obarenbo, simaishi, smallamp, tpapaioa |
| Target Milestone: | GA | ||
| Target Release: | 5.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.10.0.11 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-02-07 23:01:05 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: | |||
|
Description
Niyaz Akhtar Ansari
2018-02-12 05:36:58 UTC
Harpreet, 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 Thanks ~Niyaz New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/97a643b27f21906c7f88316df6e0a5d234a80020 commit 97a643b27f21906c7f88316df6e0a5d234a80020 Author: Harpreet Kataria <hkataria> AuthorDate: Thu Aug 9 15:09:38 2018 -0400 Commit: Harpreet Kataria <hkataria> 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. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1544317 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 5.10.0.21. 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 |