Fix for invalid discovery query in the RE.
authorKIM JungYong <jyong2.kim@samsung.com>
Mon, 27 Mar 2017 11:09:03 +0000 (20:09 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 29 Mar 2017 07:25:25 +0000 (07:25 +0000)
commitbd6a28a7fb1db10b2e931b6a97f4f97f693ec11b
tree4ae79f8569435616163cb3d25da7c82ee647cb2a
parent2cd2dc1fd7f829640bde1bc4c98fc4b109c15f70
Fix for invalid discovery query in the RE.

When do discovery with specific uri using RE layer,
RE layer trigger to find resource with invalid uri
which is specific uri without wellknown-uri(/oic/res).

But, resource server never response for this discovery request.
Because discovery request only handled by /oic/res,
other discovery request does not a handled by base stack.

In this patch,
1) Request uri is changed to wellknown uri.
2) Related unit test is modified.

Change-Id: I529430834f8c48b0eb5e31b6f58da33fb55c946c
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18191
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManagerImpl.cpp
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManagerImpl.h
service/resource-encapsulation/unittests/DiscoveryManagerTest.cpp