Bug 5915 - PATCH with "target":"/" error 60/42460/10
authorIvan Hrasko <ihrasko@cisco.com>
Mon, 25 Jul 2016 10:43:06 +0000 (12:43 +0200)
committerIvan Hrasko <ihrasko@cisco.com>
Fri, 29 Jul 2016 08:17:29 +0000 (08:17 +0000)
commit87a19ef508659ca883c38f58fa38bf14a929d219
tree8d5eef05a96e04e2153c3157c666918bedd6217a
parent7dd576d954f9ed603c964348e8a0f708ff4b5f4a
Bug 5915 - PATCH with "target":"/" error

- fixed bug + added unit test (example of usage)
for json and xml
- improved solution of bug5730

Change-Id: I0d8042ffdced97918ff936817513fc30163be577
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/JsonToPATCHBodyReader.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/XmlToPATCHBodyReader.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestJsonPATCHBodyReader.java
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlPATCHBodyReader.java
restconf/sal-rest-connector/src/test/resources/instanceidentifier/json/jsonPATCHdataCompleteTargetInURI.json [new file with mode: 0644]
restconf/sal-rest-connector/src/test/resources/instanceidentifier/xml/xmlPATCHdataCompleteTargetInURI.xml [new file with mode: 0644]