Do not report failure on empty action output 33/97033/10
authorPeterSuna <Peter.Suna@pantheon.tech>
Tue, 27 Jul 2021 12:47:11 +0000 (14:47 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 Aug 2021 13:03:11 +0000 (15:03 +0200)
commit916a6a5cb7e3ac5148f9cf6bb1a24bf7298ea9f6
treee829d84899a86f54f2bbb04bc06a398b66fc609f
parent3526abe6818ef4df8e2500ee3cdf0e685024dff8
Do not report failure on empty action output

When an action invocation results in an empty container
we should be emitting a normal 204 response, not go through
the error path -- as per RFC8040 section 6.3.

JIRA: NETCONF-799
Change-Id: Ie8f3d098fc65828998b088bfed5ca89e2f438828
Signed-off-by: PeterSuna <Peter.Suna@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/Netconf799Test.java [new file with mode: 0644]