Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem analyzing OPCUA Server root types. Unexpected DataTypeDefinition attribute found #1082

Open
emiliodiritaRA opened this issue Oct 14, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@emiliodiritaRA
Copy link

I have an OPCUA client which import OPCUA server nodes.
Of course I need to import all types before import instances.
I notice something strange exploring your python OPCUA server example (./examples/server-example.py) with UA Expert
All root types, BaseEventType, BaseInterfaceType, BaseObjectType, References and BaseVariableType have DataType icon, while they should have Type icon.
I immediately check the NodeClass attributes of those items, and they are correct.
So I do not understand why they are recognised as DataTypes.
What I found strange is that they have "DataTypeDefinition" attribute specified (the new opcua specification attribute for Structures and Enums).
This attribute is specified only for them, not for subTypes.
I think this can create problems navigating with references and check type consistency.
The attribute on root types is something that you put intentionally?
If yes, why?

To Reproduce

Start the example server (./examples/server-example.py) and connect with UAExpert

Expected behavior

DataTypeDefinition attribute not present on root types (BaseEventType, BaseInterfaceType, BaseObjectType, References and BaseVariableType)

Screenshots

image
image

Version

Python-Version: 3.10.2

opcua-asyncio Version (e.g. master branch, 0.9): master (f2ff44b)

@schroeder-
Copy link
Contributor

This this patch help #937 with the problem?

@emiliodiritaRA
Copy link
Author

emiliodiritaRA commented Oct 17, 2022

Unfortunately not.
I write a comment in the referenced issue

@schroeder- schroeder- added the bug Something isn't working label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants