Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-964

YangLib returns a 500 error if the requested SchemaSource is not available

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 6.0.0
    • netconf, restconf-nb

    Description

      If a request is made to display a YANG model that is not loaded or if the request contains a typo, YangLib returns a 500 error instead of a useful response.

      The YangLibProvider handles this scenario by throwing an IllegalStateException with a message. This exception can be used in a way that results in a correct response.

      Attachments

        1. after-patch-2.png
          after-patch-2.png
          117 kB
        2. original.png
          original.png
          114 kB
        3. after-patch-1.png
          after-patch-1.png
          120 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simon0pt Šimon Ukuš
            PeterSuna Peter Suna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: