Add an exception handling logic in collection presence in Group Manager
authorJihun Ha <jihun.ha@samsung.com>
Mon, 20 Apr 2015 05:27:19 +0000 (14:27 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 20 Apr 2015 10:30:38 +0000 (10:30 +0000)
commit71d4ed1e7431b9f786ace8f43926635e81dc7443
tree2adc0b8f17f66df9d12711ea409a147d0294935b
parent31d39181a5c75d2863f54dc5716325558fda05ed
Add an exception handling logic in collection presence in Group Manager

subscribeCollectionPresence() in GroupManager is intended to be used for group
resource having remote resources as child resources, not conventional
collection resource having local resources.
After requesting a list of child resources by sending GET to a collection
resource, if the child resource has a URI without a coap prefix "coap://", \
it is obviously a local (child) resource, which is not a desired resource
we want to send a request to presence check. Thus, we're going to ignore it.

Ref: [IOT-289]

Change-Id: I517f4fc25bb6a5e964e3624eb858a15c2dbafc03
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/773
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/things-manager/sdk/src/GroupManager.cpp