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

Boolean/String union parsing results in wrong type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: codecs
    • Labels:
      None

      Description

      When we are presented with the following model:

      module foo {
        leaf foo {
          type union {
            type boolean;
            type string;
          }
        }
      }
      

      we end up interpreting input string "TRUE" as a valid boolean and hence normalize it to the wrong value – and really end up transforming the value when transmitting it to wire, as we turn it into "true".

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: