[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: |
|
||||||||
| Description |
|
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(). |