[IOT-2139][RE]fix for use of invalid uri on the discovery.. 19/19419/3
authorKIM JungYong <jyong2.kim@samsung.com>
Fri, 28 Apr 2017 08:12:09 +0000 (17:12 +0900)
committerUze Choi <uzchoi@samsung.com>
Tue, 2 May 2017 05:06:54 +0000 (05:06 +0000)
commitb4946d15674b76ac52ae630ef4727ac97507b6e3
treea90372436d8800e024c85c1c06b4e470eec769b3
parent6d340da2d6d045d525454012901829820d726389
[IOT-2139][RE]fix for use of invalid uri on the discovery..

When discoveryResource API was called in the RE layer,
used invalid uri as empty resource type like "uri?rt=".

In this patch, if resource type is empty, rt query is removed.

Bug:https://jira.iotivity.org/browse/IOT-2139
Change-Id: I1e8d0c20bee661a822f977987742e2f10455af25
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19419
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/src/resourceClient/RCSDiscoveryManagerImpl.cpp