[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:
Relates
relates to NETCONF-853 Rfc 8040 - multiple roots when serial... Resolved
relates to NETCONF-740 RFC8040 compliance: API Resource Confirmed

 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.

Generated at Wed Feb 07 20:16:05 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.