View Issue Details

IDProjectCategoryView StatusLast Update
0007990CTT UA Scripts1 - Script Issuepublic2023-10-19 14:23
ReporterElliot Gawthrop Assigned ToArchie Miller  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0007990: A&C / A&C Basic / Test_005.js does not allow NULL for BranchId, Comment, ClientUserId
Description

A&C / A&C Basic / Test_005.js raises an error that that BranchId, Comment and ClientUserId values are not valid due to being NULL. The specification allows these values to be NULL.

BranchId: 10000-9 1.04 B.1.2 shows that servers are allowed to not support previous states, and keep BranchId at NULL all the time
Comment: 10000-9 1.04 5.5.2 states that the initial value of Comment is NULL
ClientUserId: 10000-5 1.04 6.4.3 gives the details on how to calculate ClientUserId, and states that Anonymous clients shall have a ClientUserId of NULL. It also follows that if no comment has been specified the ClientUserId shall be NULL too.

TagsNo tags attached.
Files Affected

Relationships

duplicate of 0008315 closedArchie Miller Compliance Test Tool (CTT) Unified Architecture CTT tool makes a distinction between 'null' and 'empty' OPC UA Variants 

Activities

Paul Hunkar

2022-05-13 14:34

administrator   ~0016713

NULL can have several definitions:
The branchId can be a null NodeId (not a general NULL)
The Comment is a localized text field - again it can be a NULL localized text (which has a definition of what a Null is)
The ClientUserId is a string and needs to be a NULL string.

Is this what you were providing?

Elliot Gawthrop

2022-05-16 19:18

reporter   ~0016715

Yes I believe I am. See attached pictures from UaExpert showing that each field has the correct data type.

BranchIdClientUserIdComment.png (18,750 bytes)   
BranchIdClientUserIdComment.png (18,750 bytes)   
Test_005.png (14,729 bytes)   
Test_005.png (14,729 bytes)   

Elliot Gawthrop

2022-05-17 09:40

reporter   ~0016716

I see OPC 10000-3 8.2.3 has a special definition for what a Null NodeId is. Setting BranchId to ns=0,i=0 silences the complaint about the BranchId value.

I cannot see anything in the specification that gives a special definition for LocalizedText or string.

Elliot Gawthrop

2022-05-17 10:14

reporter   ~0016717

On second thoughts, does 10000-3 8.2.3 really preclude a server from returning a null variant NodeId?

It reads to me that if you specify a numeric 0, null or empty string, a zero guid, or a bytestring with length 0 as the NodeId value, then you must set NamespaceIndex to 0. But that doesn't imply that a variant cannot contain null for a NodeId data type.

NodeId is a sub-type of BaseDataType. 10000-3 8.7 states that BaseDataType "defines a special value null indicating that a value is not present".

Elliot Gawthrop

2022-05-17 10:26

reporter   ~0016718

See also version 1.05 that strongly supports my argument that a variant null should be allowed:

"A canonical null NodeId has an IdType equal to Numeric, a NamespaceIndex equal to 0 and an Identifier equal to 0.

In addition to the canonical null NodeId the alternative values defined in Table 23 shall be considered a null NodeId."

This test is giving an error if the "alternative value" is not provided.

Archie Miller

2023-10-09 14:48

administrator   ~0020104

Resolved with Mantis Issue 8315

Paul Hunkar

2023-10-19 14:23

administrator   ~0020218

Agreed the issue is a duplicated - closed issue

Issue History

Date Modified Username Field Change
2022-05-12 21:02 Elliot Gawthrop New Issue
2022-05-13 14:29 Paul Hunkar Description Updated
2022-05-13 14:34 Paul Hunkar Assigned To => Paul Hunkar
2022-05-13 14:34 Paul Hunkar Status new => feedback
2022-05-13 14:34 Paul Hunkar Note Added: 0016713
2022-05-16 19:18 Elliot Gawthrop Note Added: 0016715
2022-05-16 19:18 Elliot Gawthrop File Added: BranchIdClientUserIdComment.png
2022-05-16 19:18 Elliot Gawthrop File Added: Test_005.png
2022-05-16 19:18 Elliot Gawthrop Status feedback => assigned
2022-05-17 09:40 Elliot Gawthrop Note Added: 0016716
2022-05-17 10:14 Elliot Gawthrop Note Added: 0016717
2022-05-17 10:26 Elliot Gawthrop Note Added: 0016718
2022-08-02 20:22 Paul Hunkar Project Compliance Test Tool (CTT) Unified Architecture => CTT UA Scripts
2023-10-05 14:33 Paul Hunkar Assigned To Paul Hunkar => Archie Miller
2023-10-09 14:48 Archie Miller Relationship added related to 0008315
2023-10-09 14:48 Archie Miller Status assigned => resolved
2023-10-09 14:48 Archie Miller Resolution open => duplicate
2023-10-09 14:48 Archie Miller Note Added: 0020104
2023-10-19 14:23 Paul Hunkar Status resolved => closed
2023-10-19 14:23 Paul Hunkar Note Added: 0020218
2023-10-19 14:23 Paul Hunkar Relationship replaced duplicate of 0008315