Fix for IOT-1394.
authorSenthil Kumar G S <senthil.gs@samsung.com>
Wed, 5 Oct 2016 16:01:10 +0000 (21:31 +0530)
committerZiran Sun <ziran.sun@samsung.com>
Wed, 12 Oct 2016 14:40:16 +0000 (14:40 +0000)
commit664340cc8b5c22d3441f11c34df2b5f3d1b8eff3
treefcd29c1fc0ea0d4d167d0c0d3ad2bcc06a8ae41d
parent18459f405216414506c405c118633405a27b0585
Fix for IOT-1394.

In callbacks for GET, PUT, POST, and OBSERVE requests in
InProcClientWrapper.cpp (CPP layer of RI), the representation was parsed
only for success cases.

But when we are dealing with cloud responses,
they include a payload with error message and code even for error cases.

To catch those responses, we should ignore the status(OCStackResult)
of client response and let the error representation reach till application.

Change-Id: I103957bb79e948693807fc05e8bed461e6b2d8dd
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12831
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/src/InProcClientWrapper.cpp