fix(client): processed history reads ask for the server's aggregate defaults
Found by the H3 live gate (H02): Client.Shared sent the SDK's default AggregateConfiguration (all false / 0), which the server refuses as a non-default configuration (BadAggregateConfigurationRejected, #677) on local and projected nodes alike, so CLI/UI --aggregate reads never worked against it. Set UseServerCapabilitiesDefaults = true. OI regression test (red without the fix) also covers HistoryReadPageAsync.
This commit is contained in:
@@ -285,7 +285,10 @@ internal sealed class DefaultSessionAdapter : ISessionAdapter
|
||||
StartTime = startTime,
|
||||
EndTime = endTime,
|
||||
ProcessingInterval = intervalMs,
|
||||
AggregateType = [aggregateId]
|
||||
AggregateType = [aggregateId],
|
||||
// The SDK's default AggregateConfiguration is all-false/0 — a NON-default configuration, which this server
|
||||
// refuses BadAggregateConfigurationRejected (#677). Ask for the server's own defaults, as Part 13 intends.
|
||||
AggregateConfiguration = new AggregateConfiguration { UseServerCapabilitiesDefaults = true },
|
||||
};
|
||||
|
||||
ArrayOf<HistoryReadValueId> nodesToRead = [new HistoryReadValueId { NodeId = nodeId }];
|
||||
|
||||
Reference in New Issue
Block a user