[CONTROLLER-1367] Rpc via restconf using json returns "Error parsing input: Incorrec nesting caused by parser." Created: 11/Jun/15 Updated: 12/Jun/15 Resolved: 12/Jun/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Lithium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Michal Rehak | Assignee: | Vaclav Demcak |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3672 |
| Description |
|
The same rpc invocation via restconf using xml works. Nothing appeared in karaf.log (root set to INFO). This is working xml input: <bulk-flow-item> <node xmlns:inv="urn:opendaylight:inventory">/inv:nodes/inv:node[inv:id="openflow:1"]</node> <cookie>142</cookie> This is corresponding json (not working): }, |
| Comments |
| Comment by Tony Tkacik [ 11/Jun/15 ] |
|
dec-nw-ttl is modeled as container or type empty? |
| Comment by Michal Rehak [ 12/Jun/15 ] |
|
case dec-nw-ttl-case { |
| Comment by Michal Rehak [ 12/Jun/15 ] |
|
Actually there were 2 typos:
should be: "node": "/opendaylight-inventory:nodes/opendaylight-inventory:node[opendaylight-inventory:id=\"openflow:1\"]" Now it works, sorry for false alarm. |