Bug 1702077

Summary: Newly created expressions with human readable sizes ( like 2.megabytes ) are failing
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ReportingAssignee: Yuri Rudman <yrudman>
Status: CLOSED ERRATA QA Contact: Angelina Vasileva <anikifor>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.2CC: dmetzger, hkataria, mshriver, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.4.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1696412 Environment:
Last Closed: 2019-05-21 05:46:56 UTC Type: ---
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:
Bug Depends On: 1696412    
Bug Blocks:    

Comment 2 CFME Bot 2019-04-24 19:47:12 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/0046a864ffaa0284acd7c73fe338933ea1a1fd8e
commit 0046a864ffaa0284acd7c73fe338933ea1a1fd8e
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Thu Apr 18 13:52:14 2019 -0400
Commit:     Gregg Tanzillo <gtanzill>
CommitDate: Thu Apr 18 13:52:14 2019 -0400

    Merge pull request #18649 from yrudman/convert-human-sizes-to-bytes-in-expression

    Fix: convert string representation of sizes to numbers when generating SQL for expression
    (cherry picked from commit db748333c85f0ed4c3100652976f92a5ef458f23)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702077

 lib/miq_expression.rb | 28 +-
 spec/lib/miq_expression_spec.rb | 21 +-
 2 files changed, 46 insertions(+), 3 deletions(-)

Comment 3 Angelina Vasileva 2019-04-30 14:53:04 UTC
Fixed and verified in 5.10.4.0.20190424160602_acb6009

Comment 5 errata-xmlrpc 2019-05-21 05:46:56 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/RHBA-2019:1247