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

YangInstanceIdentifierDeserializer fails on choice nodes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 2.0.8
    • restconf-nb
    • None

    Description

      I tested below Model and it failed, reason existing Code is not good enough to find Path for Choice Node, while loop in YangInstanceIdentifierDeserializer >> nextContextNode(…) below makes Current Null and throws Null Pointer Exception

      Which means MIX Node type like Choice handling is not proper

       

       container interfaces {
         choice interfaces-type {
           container type-gigabyte {
             action reset {
               input {
                 leaf reset-at {
                   type string;
                   mandatory true;
                 }
               }
             }
           }
         }
       }
      

       

      Code Snippet where it fails:

      YangInstanceIdentifierDeserializer >> In method  : nextContextNode(…) 

       

      while (current.isMixin()) {
        path.add(current.getIdentifier());
        current = current.getChild(qname);
        variables.setCurrent(current);
      }
      
      return current;
      

       

       

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

              rovarga Robert Varga
              ajay.dp001 Ajay Deep Singh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: