Created attachment 1190009 [details]
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):
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
Error is shown: "undefined method `<' for nil:NilClass [container_replicator/perf_chart_chooser] "
User should be able to return to selection without UI crash
screenshots and evm.log attached
Created attachment 1190010 [details]
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.
New commit detected on ManageIQ/manageiq/master:
Author: Yaacov Zamir <email@example.com>
AuthorDate: Sun Aug 14 14:38:07 2016 +0300
Commit: Yaacov Zamir <firstname.lastname@example.org>
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.
app/controllers/application_controller/performance.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)