[YANGTOOLS-1563] Unstable NodeWithValue.toString() Created: 16/Jan/24  Updated: 16/Jan/24  Resolved: 16/Jan/24

Status: Resolved
Project: yangtools
Component/s: data-api
Affects Version/s: 12.0.0, 10.0.12, 11.0.5, 9.0.10, 13.0.0
Fix Version/s: 11.0.6, 13.0.1

Type: Bug Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to YANGTOOLS-1562 NormalizedNode.toString() changed Resolved

 Description   

YANGTOOLS-1562 highlights we are treating byte[] values differently in NodeWithValue from how we handle it Leaf(SetEntry)Node.

The real problem is NodeWithValue, which boils down to byte[].toString(), which can fluctuate. ImmutableLeafNode.toString() uses ToStringHelper, which falls back to Arrays.toString(), producing a stable value.

Both formats are not great – for 13.0.1 use b64:<ENCODED> values. For backports use Arrays.toString().


Generated at Wed Feb 07 20:56:30 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.