Correct POST Location with lists 93/89393/8
authorwsx25289 <10200860@zte.com.cn>
Sun, 26 Apr 2020 07:17:28 +0000 (03:17 -0400)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 25 May 2020 11:55:16 +0000 (13:55 +0200)
commitd2e6a73b08ae4a3d6a7975895404ca3de07d2ee2
treeb417f3311d5dd51d063c55e3bb80545b4425687b
parent5b2a2e7681adc7c4872b66cddd43a979741f91dc
Correct POST Location with lists

When a document is POSTed to a map, we end up returning the wrong
location. Update location with the first entry in the map to produce
the correct result.

JIRA: NETCONF-676
Change-Id: I0a8ab5a8147b98847a1fbb1b66cc7bb7b7722872
Signed-off-by: Wsx25289 <10200860@zte.com.cn>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/PostDataTransactionUtil.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/PostDataTransactionUtilTest.java