Skip to content

Return ServiceFault for bad subscription ID and return ack results in PublishResult#1991

Open
kohtala wants to merge 2 commits into
FreeOpcUa:masterfrom
okoko:createmonitoreditems-badsubscriptionid
Open

Return ServiceFault for bad subscription ID and return ack results in PublishResult#1991
kohtala wants to merge 2 commits into
FreeOpcUa:masterfrom
okoko:createmonitoreditems-badsubscriptionid

Conversation

@kohtala

@kohtala kohtala commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

The Create/Modify/DeleteMonitoredItemsRequests returned Good service result with bad SubscriptionId and each operation result was BadSubscriptionIdInvalid. The OPC-UA specification however asks for the BadSubscriptionIdInvalid to be returned as a service result.

The PublishResponse Results was always empty while the specification asks for it to return the results of subscription acknowledgements.

The Create/Modify/DeleteMonitoredItemsRequests returned Good service result
with bad SubscriptionId and each operation result was
BadSubscriptionIdInvalid. The OPC-UA specification however asks for the
BadSubscriptionIdInvalid to be returned as a service result.
@oroulet

oroulet commented Jun 26, 2026

Copy link
Copy Markdown
Member

@kohtala some lint issues here

The PublishResponse Results was always empty while the specification asks
for it to return the results of subscription acknowledgements.

Typing did not find the generated parameters due to missing ua definition.
@kohtala kohtala force-pushed the createmonitoreditems-badsubscriptionid branch from 34a3a2b to c051e8b Compare June 26, 2026 20:03
@kohtala

kohtala commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@kohtala some lint issues here

@oroulet, I had missed what had happened earlier and only saw the error today. It is now fixed to pass.

VSCode is complaining the uaprotocol_auto.py typing references undefined ua. I was trying to add the import and it was fine in VSCode, but not for mypy. But mypy then does not complain about the undefined ua. Strange.

It might be the ua is not needed because the types are imported directly in the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants