Fix 500 server error in PUT request 28/111228/3
authorOleksandr Zharov <oleksandr.zharov@pantheon.tech>
Wed, 3 Apr 2024 15:34:03 +0000 (17:34 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 16 Apr 2024 06:08:24 +0000 (06:08 +0000)
commit9c06901f26a8429c18a6ca1967dc293a685ffa98
treeb24dc0557c6e2e2148b7f85669bcfa15db2a206c
parentc69be98502c32c0b7be96df37a78ca31dabe9ecf
Fix 500 server error in PUT request

Fixed error response for PUT create device request. One of the catch
cases didn't throw errors in the correct way causing a 500 server
error response instead of a proper message.

JIRA: NETCONF-1268
Change-Id: Iaf94814c5f5b1f4ad3bb12c8408ffa72acf0d25c
Signed-off-by: Oleksandr Zharov <oleksandr.zharov@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/ResourceBody.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/JsonResourceBodyTest.java
restconf/restconf-nb/src/test/resources/modules/netconf1268.yang [new file with mode: 0644]