Skip to content

Default Attributes for isAbstract and Symmetric of ReferenceTypes are wrong #1840

Open
@julepp

Description

@julepp

Describe the bug

When creating a Server, some of the ReferenceTypes in the Base Information Model have wrong attribute values.
The attributes isAbstract and Symmetric are not consistently set correctly. This is because the default values are set to True for both, even though they should be set to False for both.

These dafault attributes are set in ua/uaprotocol_auto.py
Lines: 6258, 6259

    data_type = NodeId(ObjectIds.ReferenceTypeAttributes)

    SpecifiedAttributes: UInt32 = 0
    DisplayName: LocalizedText = field(default_factory=LocalizedText)
    Description: LocalizedText = field(default_factory=LocalizedText)
    WriteMask: UInt32 = 0
    UserWriteMask: UInt32 = 0
    isAbstract: Boolean = True
    Symmetric: Boolean = True
    InverseName: LocalizedText = field(default_factory=LocalizedText)

To Reproduce

Run the Example Server and a use Client to inspect the Reference "organizes" for example.
According to the OPC UA specification, both isAbstract and Symmetric should be false.

Image

Version

Python-Version: 3.10.7
opcua-asyncio Version (e.g. master branch, 0.9): 1.1.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions