Bug 1481296

Summary: CloudForms REST API searching for reports by names that contain '>' fails with a '400 - Bad Request'
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Tim Wade <twade>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: gtanzill, jhardy, mfeifer, mkourim, ngupta, obarenbo, sacpatil, simaishi, slukasik, twade
Target Milestone: GAKeywords: Reopened, ZStream
Target Release: 5.8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rest:report
Fixed In Version: 5.8.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1365013 Environment:
Last Closed: 2017-10-24 00:39:41 UTC Type: ---
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: 1365013    
Bug Blocks:    

Comment 2 CFME Bot 2017-08-14 13:56:07 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/f5a310f483823b1862176d67f3f318e131d5ae09

commit f5a310f483823b1862176d67f3f318e131d5ae09
Author:     Alberto Bellotti <abellotti.github.com>
AuthorDate: Thu Aug 3 16:27:46 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Aug 14 09:52:08 2017 -0400

    Merge pull request #15534 from imtayadeway/bug/api-filter-operators-on-rhs
    
    Allow operator characters on the RHS of filter
    (cherry picked from commit d9cd967808d3ae037937a1be3a342b7a82406885)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1481296

 lib/api/filter.rb           | 11 ++++++++++-
 spec/lib/api/filter_spec.rb |  9 +++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

Comment 3 Martin Kourim 2017-09-05 08:24:50 UTC
Verified with GET /api/reports?filter[]=name='VMs%20with%20Free%20Space%20%3E%2050%25%20by%20Department'&limit=1&expand=resources

Comment 5 errata-xmlrpc 2017-10-24 00:39:41 UTC
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-2017:3005