Details
-
Bug
-
Status: Resolved
-
High
-
Resolution: Done
-
None
-
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
- relates to
-
NETCONF-834 RESTCONF OutOfMemoryError error
-
- Resolved
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 84509,15 | Add choice/case tests | master | netconf | Status: MERGED | +2 | +1 |
| 97503,34 | Add rfc8040.ApiPath | master | netconf | Status: MERGED | +2 | +1 |
| 97517,4 | WIP: Integrate ApiPath path parsing | master | netconf | Status: ABANDONED | 0 | -1 |
| 97742,23 | Use ApiPath in YangInstanceIdentifierDeserializer | master | netconf | Status: MERGED | +2 | +1 |
| 97743,4 | Update ParserIdentifier a bit | master | netconf | Status: MERGED | +2 | +1 |
| 97744,2 | WIP: Fix YangInstanceIdentifierDeserializerTest assertions | master | netconf | Status: ABANDONED | 0 | -1 |
| 98283,3 | Improve YangInstanceIdentifierDeserializerTest | master | netconf | Status: MERGED | +2 | +1 |