Bug 1503: RestconfError "data-missing" is error code 404. 93/9893/5
authorRobert Varga <rovarga@cisco.com>
Tue, 12 Aug 2014 18:08:49 +0000 (20:08 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 15 Aug 2014 16:30:37 +0000 (18:30 +0200)
commit5f6a8b0986e3214bd8fe4f87474015d3693d31e4
tree78bd1a139498a7c5388cc653c45f248b72b6a7f3
parent596901e767e8c988dbb88d4efb3f64c0d6676b54
Bug 1503: RestconfError "data-missing" is error code 404.

The base specification listed the error code to be 409, which is in
direct violation on HTTP. The restconf specification will be fixed in
the upcoming draft, meanwhile we are going for the new, sane behavior
regardless.

Change-Id: I7a6cf67a794f8348d746ba94b7de9580d0472a61
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfError.java
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfDocumentedExceptionMapperTest.java
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfErrorTest.java