Fix a faulty logic in parsing a received query and in setting a URI string
authorsy01.youn <sy01.youn@samsung.com>
Tue, 30 Aug 2016 06:03:58 +0000 (15:03 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 31 Aug 2016 01:05:12 +0000 (01:05 +0000)
commit79fda9737ad7916a2a885944de343afe6a5dbc19
treefaf649a086b5774fe22b82ccc403e33411f3d65d
parentc7fe3e6adc8a1bd9c8e56a0f534ba3f5b5822a9a
Fix a faulty logic in parsing a received query and in setting a URI string

When the request is sent with an empty query string, ehRequest->query is
empty string, which is interpreted as a default interface. This patch adds
a conditional statement to handle this case.
Additionally, due to https://gerrit.iotivity.org/gerrit/#/c/9111/ patch,
OCRepPayloadSetUri API is going not to be used in a simple resource like
wifi, cloudserver, and devConf resource. So, OCRepPayloadSetPropString
is used to write an URI of the resource.

Change-Id: Ie815e752007767881cef51018453e52c1a0e5863
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Signed-off-by: sy01.youn <sy01.youn@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11045
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/easy-setup/enrollee/src/resourcehandler.c
service/easy-setup/enrollee/unittests/ESMediatorSimulator.h
service/easy-setup/inc/escommon.h
service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/SConscript
service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/gbsbuild.sh
service/easy-setup/sampleapp/enrollee/tizen-sdb/README.txt