XML: Resolve 500 response from device exception 11/108611/16
authorYaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Tue, 24 Oct 2023 07:45:17 +0000 (10:45 +0300)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 12 Jan 2024 14:03:56 +0000 (14:03 +0000)
commit1b59089de6b8306b3f6c9dd7b14299c14f6c00d3
treefa5c68cf6ccefbe89c24f0ee1eb32453037d867a
parentcf16bd571f855d4458758f97ca390a2f146b377f
XML: Resolve 500 response from device exception

Utilize a custom XmlWriter to prepare the ietf-restconf
error response body. To emit the error-path value,
use the XmlCodec from the device to generate the correct
path format based on the device's model context.

JIRA: NETCONF-1130
Change-Id: I04ae0df51475d7bd49296b7e166fab835afdbaf3
Signed-off-by: Yaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/errors/RestconfDocumentedExceptionMapper.java