[YANGTOOLS-923] Opendaylight netconf parser removes namespaces in anyxml container before sending request to router Created: 29/Jun/18 Updated: 01/Jan/19 Resolved: 09/Dec/18 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | codecs |
| Affects Version/s: | 2.0.13, 2.1.4 |
| Fix Version/s: | 2.1.5, 2.0.14, 2.0.6.6 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Gregory Brown | Assignee: | Jakub Morvay |
| Resolution: | Done | Votes: | 0 |
| Labels: | parser | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
opendaylight-user*@*root>version 4.1.3 |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
When sending the following restconf request to ODL, it looks like the parser is stripping off the second xmlns attribute. Post request:
When checking the ODL logs seeing it removes the second xmlns.
The following raw netconf-yang rpc works:
In the yang file the input rpc action is defined as:
|
| Comments |
| Comment by Jakub Morvay [ 05/Dec/18 ] |
|
The problem here is that XmlParserStream (it is used by restconf internaly to parse xml into normalized nodes) strips attributes and namespaces when parsing AnyXml nodes. |