Client request builder SOPC_EventFilter_SetSelectClause should allow empty browse path

Description

SOPC_EventFilter_SetSelectClause should allow empty browse path to refer to the instance of the event/node. In particular this is used in the context of the OPC UA Specification Part 9 ConditionId to have access to the event/node NodeId using subscription EventFilter mechanism.

Moreover the specification part 4 for a SimpleAttributeOperand indicates the following for empty BrowsePath:

If this list is empty the Node is the instance of the TypeDefinition. which justifies possible use cases in a client request for empty BrowsePath in this case.

Code version identification

commit 9b828abd

Current behavior

SOPC_EventFilter_SetSelectClause refuses to set a SelectClause with an empty browse path (noOfBrowsePath == 0).

Expected behavior

SOPC_EventFilter_SetSelectClause should accept to set a SelectClause with an empty browse path (noOfBrowsePath == 0) as it refers to the Event instance.

Security impact

N.A.

Implementation

Accepts a noOfBrowsePath == 0 and browsePaths == NULL as arguments for SOPC_EventFilter_SetSelectClause request builder operation.

Assignee Loading
Time tracking Loading