You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LogicalLink: writeValueAsString / readValue is not round-trippable for OperatorIdentity fields #5042
But objectMapper.writeValueAsString serializes OperatorIdentity as an object{"id": "op-A"} (its scalapb case-class shape), not as a raw string. Jackson dispatches deserialization to the only @JsonCreator it knows — the String overload — which then rejects the object value.
Reproduce
valoriginal=LogicalLink(
OperatorIdentity("op-A"), PortIdentity(0),
OperatorIdentity("op-B"), PortIdentity(1)
)
valjson= objectMapper.writeValueAsString(original)
// json = {"fromOpId":{"id":"op-A"}, "fromPortId":..., "toOpId":{"id":"op-B"}, "toPortId":...}
objectMapper.readValue(json, classOf[LogicalLink])
// throws com.fasterxml.jackson.databind.exc.MismatchedInputException:// Cannot deserialize value of type `java.lang.String` from Object value
The current characterization is pinned in LogicalLinkSpec
("NOT round-trip through writeValueAsString …") so the asymmetry can't drift silently.
needs to flip to a passing round-trip assertion alongside the fix
Proposed fix (pick one)
Add a second @JsonCreator overload that accepts an object-shape OperatorIdentity, OR
Annotate fromOpId / toOpId with a custom @JsonDeserialize that handles both shapes (string and {"id": ...}).
Tracked by
The asymmetry is currently characterized (not asserted as passing) in LogicalLinkSpec — see review thread in PR #4956. When the fix lands, that test must be flipped to assert a successful round-trip.
Priority
P3 - Low (no production data loss; serialization-path-only)
Activity
feat(amber): reject self-loops and empty/null op-ids in LogicalLink
feat(amber): reject self-loops and empty/null op-ids in LogicalLink (…
feat: offload workflow compilation from ComputingUnitMaster to compil…
refactor: share logical model + plan expansion between the two compilers
Add DKNet Agent and remove DB credentials from the CU(#10)
feat: make the DKNet agent more robust (#15)
wwong0 commentedon Jun 15, 2026
/take
feat(amber): reject self-loops and empty/null op-ids in LogicalLink (…
feat(workflow-compiling-service): LogicalLink OperatorIdentity round-…