Bug 1390612

Summary: Timelines: JS Error and endless load
Product: Red Hat CloudForms Management Engine Reporter: Bronagh Sorota <bsorota>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Ievgen Zapolskyi <izapolsk>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: bsorota, cpelland, dajohnso, hkataria, izapolsk, jfrey, jhardy, mpovolny, obarenbo
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1391706 (view as bug list) Environment:
Last Closed: 2017-06-12 16:10:13 UTC Type: Bug
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:    
Bug Blocks: 1391706    
Attachments:
Description Flags
EAR file none

Description Bronagh Sorota 2016-11-01 14:10:28 UTC
Created attachment 1216122 [details]
EAR file

Description of problem:

This bug was discovered and fixed in the Hawkular provider: https://bugzilla.redhat.com/show_bug.cgi?id=1388040, this BZ was created when it became apparent it is a bug in ALL providers, not just Hawkular.


While loading Timelines for a Provider, in cases of failure events, there is a JS Error in console, and page loads endless.

Version-Release number of selected component (if applicable):
5.7.0.6-alpha3.20161019140041_ea8e259
Chrome Version 53.0.2785.116 (64-bit)
FF 49.0

How reproducible:
always when several failure events exists

Steps to Reproduce, using the Hawkular provider as an example:
1. Deploy EAR file several times, each time with different runtime name but the WAR and JAR file inside EAR keep the same. Starting from second deployments it is not successful, as inner WAR and JAR files already exists.
2. Go to Middleware Provider -> Timelines page.
3. Select "Application" Category,do not check " Show Detailed Events ", press Apply. So it should show failure evens.
But in fact page loads endless, JS error is shown in browsers console.
"SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 736 of the JSON data"

Full console log for FF and Chrome are attached.
EAR file is attached.

Comment 4 Harpreet Kataria 2016-11-03 15:04:26 UTC
Please retest with latest build. This should have been fixed by 
https://github.com/ManageIQ/manageiq/pull/12340

Comment 6 Harpreet Kataria 2016-11-04 13:48:02 UTC
*** Bug 1391909 has been marked as a duplicate of this bug. ***

Comment 7 Ievgen Zapolskyi 2017-03-07 13:13:50 UTC
Cannot reproduce it in  5.8.0.3