Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
388
Description
Using the toaster sample and the release distribution, when I issue a request to "make-toast" a null pointer exception is being thrown in
org.opendaylight.controller.sample.toaster.provider.OpendaylightToaster.logToastInput(OpendaylightToaster.java:100).
It appears the the toasterToastType input parameter is not correctly be marshalled as the value in the internal structure is even though it has been set on the API call. The toasterDoneness value is being marshalled correctly.
My concern is that this may mean that general marshalling for the RESTCONF interface is not working correctly.
The API is being invoked using the following curl:
curl -v -H "Content-Type: application/vnd.yang.operation+json" -XPOST http://admin:admin@localhost:8080/restconf/operations/toaster:make-toast -d '{ "input" :
{ "toasterDoneness" : 3, "toasterToastType" : "white-bread" }}'
Attachments
Issue Links
- blocks
-
CONTROLLER-114 RESTCONF Operations (RPC) Toaster invocation not working ?
- Resolved