Fix RFC8040 root access 94/99494/6
authorTomas Cere <tomas.cere@pantheon.tech>
Thu, 27 Jan 2022 09:55:02 +0000 (10:55 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 28 Jan 2022 11:21:42 +0000 (11:21 +0000)
commit18096bb34f1d328a40717dccb8e9a05a32437738
tree341c3e3bc344b2c792776e52dbb0a1b1b56404d7
parentbd5fe730fdef0d990163e60fdbbc957df34bdba9
Fix RFC8040 root access

Requests targetting root need to be wrapped in <data> container
to conform to the RFC, otherwise we end up with multiple roots
when serializing requests targetting root(either rests/data or
root of mounted device).

JIRA: NETCONF-853
Change-Id: I6d2a8d7b235a11779da134ed9c9abec8e8afe27c
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlNormalizedNodeBodyWriter.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlNormalizedNodeBodyWriterTest.java