Skip to content

Fix/feeder conversion failure inline error - #207

Merged
UlfBj merged 2 commits into
masterfrom
fix/feeder-conversion-failure-inline-error
Sep 15, 2026
Merged

UlfBj merged 2 commits into
masterfrom
fix/feeder-conversion-failure-inline-error

Conversation

@UlfBj

@UlfBj UlfBj commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

UlfBj and others added 2 commits September 11, 2026 15:24
… of dropping it

When a feeder's north/south domain-value conversion (enum or linear
scaling lookup in convertValue/enumConversion/linearConversion) fails
-- e.g. because a set request's value has no matching entry in the
configured conversion table, as happened for the enum-typed
Vehicle.Powertrain.Transmission.PerformanceMode signal receiving
'SPORT' with no matching scaling entry -- the feeder previously
returned an empty string for the value. That empty string passed
convertDomainData's/initVSSInterfaceMgr's only emptiness check (on
Name, not Value) and was written to state storage as-is, silently
discarding the set value while still reporting write success; the
next get then returned whatever value the backend already held for
that path (e.g. a stale/default value), giving no indication that
anything had failed.

Introduces utils.InlineErrorDataConversionFailed
('viss-inline:Data-conversion-failed'), written to state storage
instead of '' on conversion failure, so a subsequent get surfaces the
failure via the VISS in-line error reporting convention rather than
returning stale/default data. This constant is a VISSR-specific
extension of that convention and is NOT part of the VISS
specification (only 'Data-not-available' is spec-defined); the
extension is documented as such in its doc comment.

Also renames the existing non-normative 'visserr:' sentinel prefix to
'viss-inline:' (utils.InlineErrorDataNotAvailable) to match the wire
format mandated by the VISS Transport specification's in-line error
reporting section, updating storage_backend.go, curvelog.go, and the
tutorial doc that referenced the old prefix.
Signed-off-by: Ulf Bjorkengren <ulfbjn@gmail.com>
@UlfBj
UlfBj merged commit 3af34de into master Sep 15, 2026
6 checks passed
@UlfBj
UlfBj deleted the fix/feeder-conversion-failure-inline-error branch September 15, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant