NETCONF-509: no-input RPCs should use RestconfDocumentedException 25/68325/2
authorEvan Zeller <evanrzeller@gmail.com>
Wed, 14 Feb 2018 23:15:41 +0000 (15:15 -0800)
committerEvan Zeller <evanrzeller@gmail.com>
Fri, 23 Feb 2018 23:06:39 +0000 (23:06 +0000)
commit084ff22030ff347ea1ab3f9278e15111ef3b8665
tree13a812f26b9e1ee104f1ad5ab60c6615cf0cd7a3
parentdd1fc555835922db27cfe76799437acf51952266
NETCONF-509: no-input RPCs should use RestconfDocumentedException

When invoked with an "input" value currently the implementation throws
IllegalStateException up to the servlet container which results in the
ugly jetty default error page and reveals stack trace information.
Provide a clear message that the invoked RPC should not take any input values.

Change-Id: Id13499b80bed9a2ea7666a3aa6d775da341055ab
Signed-off-by: Evan Zeller <evanrzeller@gmail.com>
(cherry picked from commit 914a50cc793909ffa813e60f9ac6c73b0cfbb5bc)
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfImpl.java