[NETCONF-223] IAE Caused by missing mandatory descendant Created: 04/Jul/16 Updated: 15/Mar/19 Resolved: 21/Jul/16 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Claudio David Gasparini | Assignee: | Jakub Toth |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 6149 | ||||||||
| Description |
|
BrokerFacade#putDataViaTransaction writes parent (ensureParentsByMerge) before put payload, and causes IllegalArgumentException since its putting an empty containerwhich which has mandatory childs. java.lang.IllegalArgumentException: Node (http://openconfig.net/yang/bgp?revision=2015-10-09)bgp is missing mandatory descendant /(http://openconfig.net/yang/bgp?revision=2015-10-09)global/config/as Under BUG-6069 it can be find the step to reproduce the bug. Just removing ensureParentsByMerge did the fix, |
| Comments |
| Comment by Ryan Goulding [ 19/Jul/16 ] |
|
Is this still valid? I see that you abandoned the candidate patch. |
| Comment by Claudio David Gasparini [ 19/Jul/16 ] |
|
Hi Ryan, it still valid. Regards |
| Comment by Ivan Hrasko [ 21/Jul/16 ] |
|
In this case when parent has mandatory fields error message is correct. Request must consist of two steps: |