View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007559 | CTT UA Scripts | 1 - Script Issue | public | 2022-01-17 16:06 | 2022-10-13 15:03 |
Reporter | Elliot Gawthrop | Assigned To | Alexander Allmendinger | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.03.501 | ||||
Summary | 0007559: 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. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Files Affected | /library/Base/UaVariantToSimpleType.js | ||||
|
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. |
|
reviewed in call , agreed to changes and closed issue |
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 |