-
Bug
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
3331
With an RPC input, if you provide a string with a non-existent namespace, it causes a null pointer exception, whether or not you meant for it to be in that format.
Here is an example:
leaf response-message
{ type string; }The following string is provided as input:
<input>
<response-message>/a:b</response-message>
</input>
2015-05-19 11:20:54,221 | ERROR | qtp746320666-384 | ContainerResponse | 110 - com.sun.jersey.jersey-server - 1.17.0 |
The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
at org.opendaylight.controller.sal.rest.impl.RestUtil.toIdentity(RestUtil.java:87)[225:org.opendaylight.controller.sal-rest-connector:1.1.3.Helium-SR3]
at org.opendaylight.controller.sal.rest.impl.RestUtil.asInstanceIdentifier(RestUtil.java:50)[225:org.opendaylight.controller.sal-rest-connector:1.1.3.Helium-SR3]
at org.opendaylight.controller.sal.rest.impl.XmlToCompositeNodeReader.resolveValueOfElement(XmlToCompositeNodeReader.java:234)[225:org.opendaylight.controller.sal-rest-connector:1.1.3.Helium-SR3]
Note: This issue only occurs with XML. This does not occur with JSON.