Bug 1456742
| Summary: | Failed while launching imported report based on Chargeback for Projects via REST API. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Neha Chugh <nchugh> | ||||
| Component: | Reporting | Assignee: | Gregg Tanzillo <gtanzill> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Nandini Chandra <nachandr> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.7.0 | CC: | fdupont, jhardy, obarenbo, simaishi | ||||
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||
| Target Release: | 5.9.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | chargeback:api:import | ||||||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1458810 1460396 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-03-06 14:37:38 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1458810, 1460396 | ||||||
| Attachments: |
|
||||||
|
Description
Neha Chugh
2017-05-30 09:52:30 UTC
Created attachment 1283382 [details]
importing and launching the report
Looking at the json I can see the in the conversion from yaml, ruby symbols in the the serialized hash "db_options" were converted to strings. However, the report generator is expecting symbols. This is what's causing the failure. I don't think it's possible to preserve symbols in json so the reporting conde may need to support both. I will need to investigate further. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/ef760a7872ff28fef131ae582682ca8db0d4b8ea commit ef760a7872ff28fef131ae582682ca8db0d4b8ea Author: Gregg Tanzillo <gtanzill> AuthorDate: Thu Jun 1 13:59:27 2017 -0400 Commit: Gregg Tanzillo <gtanzill> CommitDate: Thu Jun 1 13:59:27 2017 -0400 Ensure report columns serialized as hashes have symbolized keys before importing This fixes a bug where a report imported via the Rest API, as json, fails to generate because the keys in columns serialized as hashes are received as strings. https://bugzilla.redhat.com/show_bug.cgi?id=1456742 app/models/miq_report/import_export.rb | 3 +++ spec/models/miq_report/import_export_spec.rb | 20 +++++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) As discussed with Greg on gitter, the two shared PR files, we need to apply changes only on one file i.e. import_export.rb not to the import_export_spec.rb file as this file is missing at downstream. Will test the changes as suggested by greg and will update the result accordingly. Regards, Neha Chugh Verified in 5.9.0.13 |