Bug 2521 - Wrong return status code for non-existing mount-point
authorVaclav Demcak <vdemcak@cisco.com>
Tue, 2 Jun 2015 13:14:48 +0000 (15:14 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 8 Jun 2015 08:37:31 +0000 (08:37 +0000)
commit3b58434cd0eee36f8f04ed7fba314f0ee69c8eda
treedd481a33922f7bbf94b340e77ce5b39dae65423a
parentce186874386ede18c773e02b2c2ddf92b3d14f4e
Bug 2521 - Wrong return status code for non-existing mount-point

Note: MountpointService returns Optional object without mountpoint,
so this is the point where we would like to see error code 404.

Change-Id: Id7902e5c80786275c82e279ae0433a011fa486fc
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
(cherry picked from commit 097cf9e9d96e6ad94ab91728ab84c49b0eba5f61)
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/ControllerContext.java