View Issue Details

IDProjectCategoryView StatusLast Update
0009199CTT UA Scripts1 - Script Issuepublic2023-10-26 11:56
ReporterYannik Klaass Assigned ToYannik Klaass  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0009199: Address Space WriteMask/Err-002.js returns BadAttibuteIdInvalid if an attribute covered by WriteMask is empty
Description

The script is trying to read all attributes covered by the WriteMask of a node, which fails returning a Bad_AttributeIdInvalid if an attribute is not set, while it is part of the WriteMask.

Steps To Reproduce

Run the test case AddressSpace WriteMask/Err-002.js on its own, configuring a scalar node with an attribute returning Bad_AttributeIdInvalid while having a WriteMask attribute value covering this attribute.

Tested with the .NET Core OPC UA Reference Server 1.4.372-preview, with e.g. Node ''ns=2;s=Scalar_Static_Boolean", which has a WriteMask value of 96 (DisplayName | Description) while the Description attribute is empty.

Additional Information

This error was masked by the fact that other tests in this CU write to the attributes of the WriteMask, while not reverting the values after each test (see Mantis Issue 0009033). Therefore this only happens if no other tests are selected before running Err-002. With the resolution of 0009033, this error will always occur.

TagsNo tags attached.
Files Affected

/maintree/Address Space Model/Address Space WriteMask/Test Cases/Err-002.js

Relationships

related to 0009033 closedYannik Klaass AddressSpaceModel/UserWriteAccess or WriteMask: Attributes are overwritten and remain so after test. 

Activities

Yannik Klaass

2023-10-26 11:56

developer   ~0020234

Adding code to Address Space WriteMask/Err-002 to skip empty attributes of the WriteMask printing a warning, and skipping the test if none of the attributes have an initial value

Issue History

Date Modified Username Field Change
2023-10-11 14:13 Yannik Klaass New Issue
2023-10-11 14:14 Yannik Klaass Relationship added related to 0009033
2023-10-11 14:15 Yannik Klaass Files Affected => /maintree/Address Space Model/Address Space WriteMask/Test Cases/Err-002.js
2023-10-12 16:27 Paul Hunkar Assigned To => Yannik Klaass
2023-10-12 16:27 Paul Hunkar Status new => assigned
2023-10-12 16:29 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2023-10-26 11:56 Yannik Klaass Status assigned => resolved
2023-10-26 11:56 Yannik Klaass Resolution open => fixed
2023-10-26 11:56 Yannik Klaass Note Added: 0020234