Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
unspecified
-
None
-
None
-
Operating System: All
Platform: All
-
4178
-
Normal
Description
if we create a subscription with nu=10.10.1.1 (instead of nu=http://10.10.1.1) we get an exception:
Subscription:
{ "nu": [ "10.10.1.1" ], "ty": 23, "rn": "/ODL-oneM2M-Cse/TestAE/TestContainer/TestSubscription2", "ri": "/ODL-oneM2M-Cse/g", "lt": "20150824T173328Z", "pi": "/ODL-oneM2M-Cse/b", "ct": "20150824T173328Z" }When the notification is triggered, this appears in the karaf console
opendaylight-user@root>Exception in thread "pool-31-thread-11" java.lang.IllegalArgumentException: !Absolute URI: 10.10.1.1
at org.eclipse.jetty.client.HttpExchange.setURI(HttpExchange.java:608)
at org.eclipse.jetty.client.HttpExchange.setURL(HttpExchange.java:431)
at org.opendaylight.iotdm.onem2m.protocols.http.Onem2mHttpProvider.sendNotification(Onem2mHttpProvider.java:285)
at org.opendaylight.iotdm.onem2m.notifier.Onem2mNotifierService.executorOnResourceChanged(Onem2mNotifierService.java:80)
at org.opendaylight.iotdm.onem2m.notifier.Onem2mNotifierService.access$000(Onem2mNotifierService.java:25)
at org.opendaylight.iotdm.onem2m.notifier.Onem2mNotifierService$1.run(Onem2mNotifierService.java:90)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)