Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1563

Unstable NodeWithValue.toString()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 11.0.6, 13.0.1
    • 12.0.0, 10.0.12, 11.0.5, 9.0.10, 13.0.0
    • data-api
    • None

      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().

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: