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

Unstable NodeWithValue.toString()

    XMLWordPrintable

Details

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

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

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: