
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Windows 2000
|
|
| Severity: |
Major
|
| Runtime: |
N/A
|
| Fix in hand: |
True
|
|
The dataseries component performs no type checking on data returned by loaddata method. At the begining of the method is the following code:
var dp = this.getDataPath();
this.values = dp.xpathQuery(this.columndatapath);
xpathQuery may return a null or a LzElement or an array of LzElements. The dataseries class will only function if the result is an array of elements.
If the xpathQuery returns null a series of warnings are generated
If the xpathQuery returns a LzElement the data series is build on the array value of the LzElement object
If the xpathQuery returns an array of LzElements the dataseries is build properly..
Fix
A simple check for the type of value returned by the xpathQuery should be performed before the data is processed.
Other charting components should be able to operate with an empty set of data.
|
|
Description
|
The dataseries component performs no type checking on data returned by loaddata method. At the begining of the method is the following code:
var dp = this.getDataPath();
this.values = dp.xpathQuery(this.columndatapath);
xpathQuery may return a null or a LzElement or an array of LzElements. The dataseries class will only function if the result is an array of elements.
If the xpathQuery returns null a series of warnings are generated
If the xpathQuery returns a LzElement the data series is build on the array value of the LzElement object
If the xpathQuery returns an array of LzElements the dataseries is build properly..
Fix
A simple check for the type of value returned by the xpathQuery should be performed before the data is processed.
Other charting components should be able to operate with an empty set of data.
|
Show » |
|