View Issue Details

IDProjectCategoryView StatusLast Update
0007559CTT UA Scripts1 - Script Issuepublic2022-10-13 15:03
ReporterElliot Gawthrop Assigned ToAlexander Allmendinger  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.03.501 
Summary0007559: IncrementUaVariantArray exception if value < -incValue
Description

When running Monitor Items Deadband Filter/014.js, the server had a byte array containing a value where one of the bytes was 3. This caused the test case to throw an exception and fail.

When IncrementUaVariantArray runs on the array, line 258 of UaVariantToSimpleType.js tests if (3 >= (255 - incValue)). incValue is -11, and 3 is < 266, so it then adds incValue to the byte. 3 + incValue = -8. byteArrayToByteString then throws an exception since it is not expecting negative values.

TagsNo tags attached.
Attached Files
IncrementUaVariantArray.png (20,722 bytes)   
IncrementUaVariantArray.png (20,722 bytes)   
Files Affected

/library/Base/UaVariantToSimpleType.js

Activities

Alexander Allmendinger

2022-03-03 14:49

developer   ~0016154

To resolve this, the upper limit of Constants.Byte_Max for increasing has been extended by a lower limit of 0 to take negative increasing into account.

Paul Hunkar

2022-10-13 15:03

administrator   ~0018023

reviewed in call , agreed to changes and closed issue

Issue History

Date Modified Username Field Change
2022-01-17 16:06 Elliot Gawthrop New Issue
2022-01-17 16:06 Elliot Gawthrop File Added: IncrementUaVariantArray.png
2022-02-24 15:38 Paul Hunkar Assigned To => Alexander Allmendinger
2022-02-24 15:38 Paul Hunkar Status new => assigned
2022-03-03 14:49 Alexander Allmendinger Status assigned => resolved
2022-03-03 14:49 Alexander Allmendinger Resolution open => fixed
2022-03-03 14:49 Alexander Allmendinger Note Added: 0016154
2022-08-02 20:03 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2022-09-02 15:37 Paul Hunkar Fixed in Version => 1.03.501
2022-09-02 15:37 Paul Hunkar Target Version => 1.03
2022-10-13 15:03 Paul Hunkar Files Affected => /library/Base/UaVariantToSimpleType.js
2022-10-13 15:03 Paul Hunkar Status resolved => closed
2022-10-13 15:03 Paul Hunkar Note Added: 0018023