X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-rfc8040%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Frests%2Fservices%2Fimpl%2FJSONRestconfServiceRfc8040Impl.java;h=3e31ea6d5f498af9c884f5fa5b2fd1b4facf56e6;hb=1e174be6002940e17aee31d15f8914273d30f25c;hp=52664062ec135d7091da5424a0a155b413aa7812;hpb=b121b01510163f7182432c2de8341702ec960b8b;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/JSONRestconfServiceRfc8040Impl.java b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/JSONRestconfServiceRfc8040Impl.java index 52664062ec..3e31ea6d5f 100644 --- a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/JSONRestconfServiceRfc8040Impl.java +++ b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/JSONRestconfServiceRfc8040Impl.java @@ -195,7 +195,8 @@ public class JSONRestconfServiceRfc8040Impl implements JSONRestconfService, Auto final InputStream entityStream = new ByteArrayInputStream(payload.getBytes(StandardCharsets.UTF_8)); - JsonToPatchBodyReader jsonToPatchBodyReader = new JsonToPatchBodyReader(schemaContextHandler); + JsonToPatchBodyReader jsonToPatchBodyReader = + new JsonToPatchBodyReader(schemaContextHandler, mountPointServiceHandler); final PatchContext context = jsonToPatchBodyReader.readFrom(uriPath, entityStream); LOG.debug("Parsed YangInstanceIdentifier: {}", context.getInstanceIdentifierContext().getInstanceIdentifier()); @@ -224,12 +225,7 @@ public class JSONRestconfServiceRfc8040Impl implements JSONRestconfService, Auto } final InputStream entityStream = new ByteArrayInputStream(payload.getBytes(StandardCharsets.UTF_8)); - try { - return JsonNormalizedNodeBodyReader.readFrom(instanceIdentifierContext, entityStream, isPost); - } catch (final IOException e) { - propagateExceptionAs(uriPath, e, "GET"); - return null; - } + return JsonNormalizedNodeBodyReader.readFrom(instanceIdentifierContext, entityStream, isPost); } private String toJson(final PatchStatusContext patchStatusContext) throws IOException {