From: saerome.kim Date: Tue, 30 Jan 2018 01:13:52 +0000 (+0900) Subject: comp-manager: add comment to explain query can't b consist of BASE64 format X-Git-Tag: submit/tizen/20190131.065036~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=305d7653e24b481bd35f9ec87a6a5aa949fdef53;p=platform%2Fcore%2Fapi%2Fmulti-device-group.git comp-manager: add comment to explain query can't b consist of BASE64 format Signed-off-by: saerome.kim --- diff --git a/src/companion-manager/src/comp_iot.c b/src/companion-manager/src/comp_iot.c index 44f82e8..d3f4b8d 100644 --- a/src/companion-manager/src/comp_iot.c +++ b/src/companion-manager/src/comp_iot.c @@ -151,7 +151,13 @@ static void _request_handler(iotcon_resource_h resource, iotcon_request_h reques LOG_DEBUG("Receive Data"); iotcon_query_lookup(query, "data", &data); - payload_len = strlen(data); + /* + * BASE64 encoding/decoding system use '=' as padding byte + * But, query parameter does not allow use '=' character.Basically, + * So, in order to use BASE64 as query parameters, we need additioinal length param + * such as 'len=xx' + */ + payload_len = strlen(data); /* This data may be cliped the last padding 1~2 bytes ('='/'==') */ LOG_DEBUG("data = %s payload_len = %d", data, payload_len);