Created attachment 1190009 [details] evm.log attached. Description of problem: In C&U, when trying to select a date for metrics display, and moving away from calendar, web ui crashes: "undefined method `<' for nil:NilClass [ems_container/perf_chart_chooser] " Version-Release number of selected component (if applicable): 5.6.1 How reproducible: Always Steps to Reproduce: 1.Setup CFME with Provider that has metrics in openshift 2.Go to Monitoring --> Utilization 3.Click on Calendar (to select a day for metrics display) 4. Do not select any day 5. Click on the page - to close the calendar selection Actual results: Error is shown: "undefined method `<' for nil:NilClass [container_replicator/perf_chart_chooser] " Expected results: User should be able to return to selection without UI crash Additional info: screenshots and evm.log attached
Created attachment 1190010 [details] screenshots
Nandini, are you seeing this on any other provider from cloud/infra or is it only related to containers?
Tested both infra(vsphere) and cloud(ec2) and I don't see the issue.
Submitted upstream: https://github.com/ManageIQ/manageiq/pull/10458
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/21ee8f35afce285cc6b7880b91dd4614ae9dacdf commit 21ee8f35afce285cc6b7880b91dd4614ae9dacdf Author: Yaacov Zamir <yzamir> AuthorDate: Sun Aug 14 14:38:07 2016 +0300 Commit: Yaacov Zamir <yzamir> CommitDate: Sun Aug 14 14:38:07 2016 +0300 C&U - WEB UI crashes when moving from calendar to daily/hourly selection It is posible to send an empty string as a date from the UI, we currently only protect against nil date but not against an empty string. We add a check for empty string date. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1366233 app/controllers/application_controller/performance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Merged upstream: https://github.com/ManageIQ/manageiq/pull/10458