View Issue Details

IDProjectCategoryView StatusLast Update
0004347Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2019-08-09 15:19
ReporterBrian Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformPCOSWindowsOS Version8.1
Product Version1.03.340.380 
Target Version1.03Fixed in Version1.03.341.381 
Summary0004347: Base Information.Base Info Server Capabilities.005 / Unexpected Error
Description

This test gives an unexpected error when a server has not set the ArrayDimension attribute.

Additional Information

Alex Allmendinger asked me to submit this report and code snippet to correct the issue.

// now to see if we can re-write the array and increase the size
for( var i=0; i<items.length; i++ ) items[i].AttributeId = Attribute.ArrayDimensions;
if (!ReadHelper.Execute({ NodesToRead: items })) {
return( false );
}
var writableNodes = [];
for (var i = 0; i < items.length; i++) {
if (items[i].Value.Value.isEmpty()) {
addWarning("ArrayDimension of Node " + items[i].NodeId + "is null or undefined. Even though this attribute is marked as optional it shall be defined in some cases. Please verfiy correct behavior in Part 5, Common Variable Attributes.");
continue;
}
if( items[i].Value.Value.toUInt32Array()[0] == 0 ) writableNodes.push( items[i] );
}
if( writableNodes.length === 0 ) return( false );

TagsNo tags attached.
Files Affected

Activities

Alexander Allmendinger

2018-08-10 10:55

developer   ~0009294

Fixed accordingly

Paul Hunkar

2019-08-09 15:19

administrator   ~0010733

reviewed in CMP call

Issue History

Date Modified Username Field Change
2018-07-27 11:42 Brian New Issue
2018-08-10 04:05 Paul Hunkar Assigned To => Alexander Allmendinger
2018-08-10 04:05 Paul Hunkar Status new => assigned
2018-08-10 10:55 Alexander Allmendinger Note Added: 0009294
2018-08-10 10:55 Alexander Allmendinger Status assigned => resolved
2018-08-10 10:55 Alexander Allmendinger Fixed in Version => 1.03.341.381
2018-08-10 10:55 Alexander Allmendinger Resolution open => fixed
2019-01-28 14:10 Paul Hunkar Category Script Issue => 1 - Script Issue
2019-08-09 15:17 Paul Hunkar Target Version => 1.03
2019-08-09 15:19 Paul Hunkar Status resolved => closed
2019-08-09 15:19 Paul Hunkar Note Added: 0010733