Restconf returns 500 for invalid PUT data

Description

Put and PatchData requests use jsonParser.parse(reader) without handling unchecked Exceptions. This causes Restconf to return a 500 Server error if the request body contains incorrect data. The Post request uses a different class, JsonChildBody that handles an unchecked Exception.

To reproduce, send a PUT request to a model that is included in the SchemaContext but does not model provided data.

Environment

None

Attachments

2

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created February 7, 2025 at 6:38 PM
Updated 1 hour ago