BUG 1839 - HTTP delete of non existing data 13/12313/1
authorJozef Gloncak <jgloncak@cisco.com>
Tue, 16 Sep 2014 12:49:24 +0000 (14:49 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 29 Oct 2014 10:19:04 +0000 (10:19 +0000)
commit50e529a3c05488d0410ce600b7cc14e2088e8fe5
treedb0b34a7faf5ca41f932673b987312edc6f52bb1
parent76de8c3be66fd1ff78027161e1d6d6b3d63c86df
BUG 1839 - HTTP delete of non existing data

Before - after deleting non existing data an exception was raised.
Now - after deleting non existing data it is checked whether there is in
exception chain instance of ModifiedNodeDoesNotExistException. If it is so then
HTTP 404 - data missing status is returned.

Change-Id: I43ccaa16abe7dfaffa3e031aa31d93f8f106a81f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
(cherry picked from commit 4c22825994c2519fb1c9d63f0050ebf35c4f8439)
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/BrokerFacade.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/BrokerFacadeTest.java