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

Codecs report wrong error-type in YangError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.7, 7.0.4
    • 6.0.6, 7.0.3
    • data-impl

      Baseline codec validation of received values reports YangInvalidValueException with ErrorType.PROTOCOL. Based on the content of RFC6241 this seems to be rather wrong, as the validation is coming from the actual YANG models, hence is part of the Content layer as defined in https://datatracker.ietf.org/doc/html/rfc6241#section-1.2 . We should be reporting ErrorType.APPLICATION.

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

              Created:
              Updated:
              Resolved: