Bug 1042646

Summary: Groups can fail to render JSON, which fails with a syntax error, with missing data
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-13 01:13:44 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
JSON file containing bad data; search for 'qc5002' none

Description Elias Ross 2013-12-13 01:05:23 UTC
Created attachment 836080 [details]
JSON file containing bad data; search for 'qc5002'

Description of problem:

A group with many hosts, trying to render user load over the group fails with the error:

Thu Dec 12 16:34:57 GMT-800 2013 
WARNING: Globally uncaught exception
com.google.gwt.core.client.JavaScriptException: (SyntaxError) 
 stack: SyntaxError: Unexpected token ]
    at Object.parse (native)
    at Function.e.extend.parseJSON (http://st11p01ad-rhq003:7080/coregui/js/jquery-1.7.2.min.js:2:10821)
    at new $drawJsniChart_1.MultiLineChartContext (<anonymous>:100508:94)
    at $drawJsniChart_1 (<anonymous>:100526:18)
    at Object.run_22 [as run] (<anonymous>:100488:3)

The amount of data is about 135,000 bytes. See attached.

{ "x":1386887680704, "y":57.329037962640115}]},
{ "key": "st11p01ad-qc5002","value" : ]},
{ "key": "st11p01ad-qc5043","value" : [{ "x":1386462880704, "y":15.354926403078602},
{ "x":1386470080704, "y":19.421497912270024},

Notice that qc5002 has no values.


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


How reproducible: ???

Steps to Reproduce:
1. Create a group with many hosts
2. Remove the measurement schedule for user load from one
3. Attempt to render a graph

Actual results: Error, with bad JSON


Expected results: Graph


Additional info:

Comment 1 Elias Ross 2013-12-13 01:13:44 UTC

*** This bug has been marked as a duplicate of bug 1028031 ***