Bug 1203022

Summary: comparison of String with 0 failed [report/form_field_changed] error while creating chargeback report
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: gblomqui, hkataria, jfrey, jhardy, mpovolny, nachandr, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 19:01:32 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:
Attachments:
Description Flags
chargeback filters none

Description Nandini Chandra 2015-03-17 22:22:03 UTC
Created attachment 1002967 [details]
chargeback filters

Description of problem:
----------------------
I was trying to create a chargeback report Cloud Intelligence->Reports
and I encountered this error.

comparison of String with 0 failed [report/form_field_changed] error while creating chargeback report


Version-Release number of selected component (if applicable):
------------------------
5.4.0.0.12.20150312013923_aa9b093 


How reproducible:
----------------
Always


Steps to Reproduce:
------------------
1.While creating a chargeback report,under the 'Chargeback Filters' option,
select 'owner' or 'My company Tag' in the 'Show costs by' dropdown.
(See attached screenshot)


Actual results:
--------------


Expected results:
---------------


Additional info:
---------------

Comment 2 Jason Frey 2015-03-19 14:23:31 UTC
This might be from the sort/sort_by change I made.

Comment 5 Dave Johnson 2015-03-19 18:08:44 UTC
Nandini, please reproduce and attach any stack traces from the logs in a comment please.

Comment 8 Nandini Chandra 2015-03-19 18:56:11 UTC
Here's a snippet from production.log:

[----] F, [2015-03-19T14:33:12.399565 #2263:badeac] FATAL -- : Error caught: [ArgumentError] comparison of String with 0 failed
/var/www/miq/vmdb/app/views/report/_form_filter_chargeback.html.haml:33:in `>'
/var/www/miq/vmdb/app/views/report/_form_filter_chargeback.html.haml:33:in `sort'
/var/www/miq/vmdb/app/views/report/_form_filter_chargeback.html.haml:33:in `_app_views_report__form_filter_chargeback_html_haml__4212969450141476805_105062180'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/template.rb:145:in `block in render'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/notifications.rb:125:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/template.rb:143:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/notifications.rb:123:in `block in instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/activesupport/lib/active_support/notifications.rb:123:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/partial_renderer.rb:237:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/renderer/renderer.rb:15:in `render'
/opt/rh/cfme-gemset/bundler/gems/rails-8f014fba21f9/actionpack/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/opt/rh/cfme-gemset/bundler/gems/jquery-rjs-33e0fc1c0b25/lib/jquery-rjs/rendering.rb:8:in `render_with_update'
/opt/rh/cfme-gemset/gems/haml-4.0.6/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
/opt/rh/cfme-gemset/gems/haml-4.0.6/lib/haml/helpers.rb:89:in `non_haml'