Bug 1544493

Summary: Reporting on custom attributes containing spaces in name fails
Product: Red Hat CloudForms Management Engine Reporter: Brant Evans <brant.evans>
Component: ReportingAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: cpelland, obarenbo, yrudman
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-12 12:49:32 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 Brant Evans 2018-02-12 16:14:09 UTC
Description of problem:
Creating a report based on Virtual Machines and selecting a custom attribute field with spaces will not properly save or generate the expected data. The field is saved up to the first space.

A custom attribute name of "Sample Attribute" will show properly on the VM and in the report editing will show as "Custom Attribute: Sample Attribute", but when the report is previewed, saved, edited, or ran the selected field will be "Custom Attribute: Sample". When editing the report the "Custom Attribute: Sample Attribute" is listed in the Available Fields section.


Version-Release number of selected component (if applicable):
5.8.2.3.20171016155816_aaec796


Steps to Reproduce:
1. Assign a custom attribute to a VM with a name containing a space (eg "Sample Attribute")
2. Create a report and select "Custom Attribute: Sample Attribute" as one of the fields to report on.
3. Save the report
4. Run the report
5. Edit the report. 

Actual results:
* The generated report has no data for the custom attribute column. 
* When editing the report the Selected Fields section shows "Custom Attribute: Sample" and the Available Fields section shows "Custom Attribute: Sample Attribute"

Expected results:
* The generated report has the data for the selected custom attribute
* When editing the report the Selected Fields section shows "Custom Attribute: Sample Attribute" and is not in the Available Fields section.

Additional info:

Comment 2 Yuri Rudman 2018-03-12 12:49:32 UTC

*** This bug has been marked as a duplicate of bug 1553750 ***