[NETCONF-855] RESTCONF mis-represents the root namespace Created: 28/Jan/22 Updated: 13/Sep/23 |
|
| Status: | Confirmed |
| Project: | netconf |
| Component/s: | restconf-nb |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0 |
| Type: | Bug | Priority: | Highest |
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
When we emit the datastore root, we assert that the XML encoding is the following <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"></data> This is incorrect, as RFC8040 specifies the namespace of data to be ietf-restconf:
<restconf xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf">
<data/>
<operations/>
<yang-library-version>2016-06-21</yang-library-version>
</restconf>
This is a breaking change, hence should be done in the next major version. Note this affects only the datastore root, not mount points, as those should follow their own encapsulation. |
| Comments |
| Comment by Robert Varga [ 13/Sep/23 ] |
|
We have a number of tests which are asserting the wrong thing. Overall RESTCONF assumes the NETCONF namespace in a number of places – and those assumptions are wrong. |