Add OPC UA Part 17 Alias Names support - #1834
Merged
Merged
Conversation
The events Like operator owned the only implementation of the Part 4 LIKE grammar, and alias name search needs the same matching. Move parsing, matching, and the LRU pattern cache into a reusable LikeMatcher; the operator delegates with no behavior change. The new compile() entry point lets callers that evaluate one pattern against many values parse it once. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
startup() transitioned to RUNNING before invoking onStartup() and never reverted, so a failed startup left isRunning() reporting true and a defensive shutdown() would run onShutdown() against state that never finished initializing. Transition to STOPPED instead, making a lifecycle whose startup failed safely disposable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kevinherron
force-pushed
the
feature/alias-manager
branch
2 times, most recently
from
August 3, 2026 02:13
8d0e7bd to
cf58483
Compare
kevinherron
marked this pull request as ready for review
August 3, 2026 02:19
AliasManager is an opt-in server component that binds FindAlias (and optionally FindAliasVerbose) on the standard Aliases, TagVariables, and Topics categories, supports application-defined category trees, and optionally exposes AddAliasesToCategory/DeleteAliasesFromCategory for client-driven configuration. LastChange versioning persists through a pluggable AliasVersionStore, and an AliasAuthorizationPolicy SPI gates calls and can filter individual results. Until a manager is installed, OpcUaNamespace now marks the standard FindAlias Methods non-executable so absent alias support is not a callable Method that always fails. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kevinherron
force-pushed
the
feature/alias-manager
branch
from
August 3, 2026 03:25
cf58483 to
7ef6e44
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds support for OPC UA Part 17 Alias Names, which lets clients look up Nodes by a well-known alias name (e.g. a tag name) instead of needing to know their NodeIds. Clients search for aliases with the standard
FindAliasandFindAliasVerboseMethods, and can optionally be allowed to manage aliases themselves viaAddAliasesToCategoryandDeleteAliasesFromCategory.The feature is implemented as
AliasManager, an opt-in component an application creates and starts alongside itsOpcUaServer. It binds the Find Methods on the standard Aliases, TagVariables, and Topics categories, and applications can add their own category trees and aliases through its API. Alias and category Nodes live in an application-suppliedNodeManager,LastChangeversion tracking persists through a pluggableAliasVersionStore, and anAliasAuthorizationPolicySPI controls who may search and configure.Servers that don't install a manager now mark the standard
FindAliasMethods non-executable, so absent alias support no longer looks like a callable Method that always fails.Also included are two standalone supporting changes: the Part 4 LIKE pattern matching used by the event filter
Likeoperator was extracted into a reusableLikeMatcher(now shared by alias search), andAbstractLifecyclewas fixed to leave a lifecycle stopped whenonStartup()throws.🤖 Generated with Claude Code