[IOT-1665] Fix bug for invalid input of constructResourceObject() in RE layer.
authorKIM JungYong <jyong2.kim@samsung.com>
Mon, 12 Dec 2016 12:51:46 +0000 (21:51 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 14 Dec 2016 08:47:25 +0000 (08:47 +0000)
commite9ca9826f396ab49eca4ddb27d3b154604121e18
tree86ddb921a6047649761656ad534614ad1f41ba9d
parent69b0ee821fc53093a4f40723791cae9feeac563a
[IOT-1665] Fix bug for invalid input of constructResourceObject() in RE layer.

When RCSRemoteResourceObject::toOCResource() method called,
inside RE layer, constructResourceObject() was called
with invalid parameter on OCConnectityType.
So, it is due to mismatch with response type and request type.
the above result, ocstack layer couldn't parse payload.

In this patch, fixed parameter for OCConnectityType is modified valid type.

Change-Id: Ic924d9a892227377406e2b3ecfe666c41f1f0b04
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15507
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 51c33d5fc29083cfe17667f5cc33e4e82cd0a0f5)
Reviewed-on: https://gerrit.iotivity.org/gerrit/15535
service/resource-encapsulation/src/common/primitiveResource/include/PrimitiveResource.h
service/resource-encapsulation/src/common/primitiveResource/include/PrimitiveResourceImpl.h
service/resource-encapsulation/src/common/primitiveResource/unittests/PrimitiveResourceTest.cpp
service/resource-encapsulation/src/resourceClient/RCSRemoteResourceObject.cpp