OPCFoundation / UA-CloudLibrary

OPC UA Information Model database with a REST and GraphQL interface, as well as user management. The global instance of this (hosted by the OPC Foundation) can be found at https://uacloudlibrary.opcfoundation.org.
Other
39 stars 18 forks source link

NodeSet API: NamespaceUris cannot be instances of the Uri class #161

Closed opcfoundation-org closed 1 year ago

opcfoundation-org commented 1 year ago

Equality tests against NamespaceUris are exact string matches. The Uri class can normalize Uris and result in false positives or false negatives.

opcfoundation-org commented 1 year ago

Equality tests in the Server should be done with Uri.OriginalString https://learn.microsoft.com/en-us/dotnet/api/system.uri.originalstring?view=net-6.0

The documentation should have a discussion of the need to use Uri.OriginalString when testing for equality inside client applications.