View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009200 | CTT UA Scripts | 1 - Script Issue | public | 2023-10-11 14:53 | 2023-10-12 15:41 |
Reporter | Yannik Klaass | Assigned To | Yannik Klaass | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.03.505 | ||||
Summary | 0009200: Address Space UserWriteAccess/Err-002.js: Unexpected error when writing to an empty attribute covered by WriteMask | ||||
Description | Testing with the .NET Core OPC UA Reference Server 1.4.372-preview, e.g. with configured scalar node ''ns=2;s=Scalar_Static_Boolean", the test case Address Space UserWriteAccess/Err-002 prints "'item.OriginalValue.toLocalizedText()' [null] is not an object" when accessing the value of the Description attribute, which is empty in the server. Furthermore the Read and reverting Write calls should expect BadAttributeIdInvalid, to avoid error output if the attributes to write to are empty initially. | ||||
Steps To Reproduce | Run Address Space UserWriteAccess/Err-002 while configuring a scalar node with a WriteMask that covers at least one of the attributes Description, DisplayName or InverseName, with the according attribute not being set. | ||||
Tags | No tags attached. | ||||
Files Affected | /maintree/Address Space Model/Address Space UserWriteAccess/Test Cases/Err-002.js | ||||
related to | 0009033 | closed | Yannik Klaass | AddressSpaceModel/UserWriteAccess or WriteMask: Attributes are overwritten and remain so after test. |
|
Adding code to check if 'item.OriginalValue' is not empty, before accessing toLocalizedText() function to avoid an unexpected error, and setting an empty locale otherwise. Furthermore adding BadAttributeIdInvalid to expected results of the initial Read and the reverting Write calls, as the attributes are not required to be set in order to write to them. |
|
reviewed changes in call, agreed to changes, closed issue |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-10-11 14:53 | Yannik Klaass | New Issue | |
2023-10-11 14:54 | Yannik Klaass | Relationship added | related to 0009033 |
2023-10-11 15:11 | Yannik Klaass | Files Affected |
=> /maintree/Address Space Model/Address Space UserWriteAccess/Test Cases/Err-002.js
|
2023-10-12 15:39 | Paul Hunkar | Assigned To | => Yannik Klaass |
2023-10-12 15:39 | Paul Hunkar | Status | new => assigned |
2023-10-12 15:40 | Yannik Klaass | Status | assigned => resolved |
2023-10-12 15:40 | Yannik Klaass | Resolution | open => fixed |
2023-10-12 15:40 | Yannik Klaass | Note Added: 0020159 | |
2023-10-12 15:41 | Paul Hunkar | Project | Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts |
2023-10-12 15:41 | Paul Hunkar | Status | resolved => closed |
2023-10-12 15:41 | Paul Hunkar | Fixed in Version | => 1.03.505 |
2023-10-12 15:41 | Paul Hunkar | Note Added: 0020160 |