fix(scripting): #1109 byte[][] stays refused with a ByteString-specific reason

A script result has no ByteString-array form (its only byte shape is one flat
Byte array) and the worker wire has no ByteString or nested-array tag, so
byte[][] is left refused with every other jagged array (no new wire tag). Its
reason now says it is not an array of ByteStrings and offers both forms that
publish: a flat byte[] (SelectMany) or a string[] of Base64 blobs. Pinned by
ScriptResultMaterializerTests.
This commit is contained in:
Joseph Doherty
2026-12-04 22:09:47 -05:00
parent fce51769a4
commit ec17a83aea
3 changed files with 39 additions and 1 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ processes:
previous value and status with only a server-log warning). A jagged array
(`int[][]`, `byte[][]`) is refused the same way since lmxopcua#1104 (`… cannot carry: an array of arrays …`, with a
flatten hint): it used to be the one result divergence — in process it was published as an array of Variants on a node
whose DataType is a scalar type, while the wire has no nested-array tag and the worker answered `unsupported type`. A returned collection (`List<double>`) is copied
whose DataType is a scalar type, while the wire has no nested-array tag and the worker answered `unsupported type`. `byte[][]` is not read as an array of ByteStrings (a script result has no ByteString-array form); its reason says so and also offers a `string[]` of Base64 blobs (lmxopcua#1109). A returned collection (`List<double>`) is copied
into a typed array by both runners first (lmxopcua#1092).
- **Attribution happens before release.** The worker's exit path runs attribution (strike, quarantine, suspect
marks) synchronously **before** it completes any evaluation the worker held, so a script killed for its deadline is