fix(dataconn): #941 #942 #943 consumer skips unmaterialisable browse items, gate refuses alarm-bearing export roots, no existence oracle
#941: RemoteNamespaceResolver now skips an origin browse item this build cannot materialise (NodeKind not Folder/Variable/Tag, or a value/array-element kind with no OPC UA built-in type: Guid, Bytes) instead of failing the whole page, so one UnsupportedVariable no longer makes the folder BadNoCommunication. Malformed items of a supported kind still fail closed. New real-SDK wire tests: an injected unmaterialisable child (4 kinds) is skipped across BrowseNext pages, and an empty Complete=false origin page is paged through. #942: DataConnectionValidator (authoring + DraftValidator deploy gate, not node-side ValidateDeployed) refuses DataExportRootAlarmBearing: an export rooted at an alarm-bearing RawTag (grants nothing) or at a UnsTagReference to one (no UNS node, so the node's catalog compile throws and refuses the whole export set). #943: GetMetadata, Read, Subscribe and condition-item admission answer an address outside every export of the principal as NotFound, identical to a missing one (LocalExportCatalog.DisclosesAddress replaces ContainsAddress). Denied stays for addresses inside a grant. Browse, Write, HistoryRead and condition methods were already uniform.
This commit is contained in:
@@ -254,6 +254,10 @@ public sealed class RemoteNamespaceResolver : IFederatedProjectionCatalog, IDisp
|
||||
var results = new List<ProjectedNodeProof>(); var seenNames = new HashSet<string>(StringComparer.Ordinal);
|
||||
foreach (var item in branch.Items)
|
||||
{
|
||||
// #941: an item this build cannot materialise is skipped, not a reason to fail the whole page (the applier and
|
||||
// the node manager apply a page all-or-nothing). It never enters the snapshot, the cache or the address space,
|
||||
// and its browse name does not count against the page's duplicate check.
|
||||
if (!ProjectedCatalogCache.IsMaterialisable(item)) continue;
|
||||
item.Validate();
|
||||
if (item.Serving != serving || item.View.MappingId is not null || item.View.Realm != request.Parent.Realm ||
|
||||
item.CatalogRevision != serving.CatalogEpoch || !string.Equals(item.View.Address.OriginClusterId, originParent.View.Address.OriginClusterId, StringComparison.OrdinalIgnoreCase) ||
|
||||
|
||||
Reference in New Issue
Block a user