Respond to AdminCheckRequest with AdminCheckResponse 68/31568/7
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 5 Dec 2014 23:37:20 +0000 (00:37 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 15 Dec 2014 14:38:18 +0000 (15:38 +0100)
commit6566b149fe740e5f4347da1df4c579bbfb1979ce
treec6cd32e7146ca66e76aa8c11cd27c8f19c6303a5
parent700193cd0946aaaf2bcac4b9fbfd8f61206967dd
Respond to AdminCheckRequest with AdminCheckResponse

Change implementation of both service and admin library Logic layers
so they use AdminCheckResponse instead of CheckResponse as a reply
for AdminCheckRequest.

This change allows passing additional information about existence
or vacancy of start bucket given in AdminCheckRequest.
In case of vacancy of such bucket in cynara database cynara-admin
library returns CYNARA_API_BUCKET_NOT_FOUND from cynara_admin_check()
function.

This fixes also a bug that was hidden in service Logic. Passing
unexisting bucket causes cynara service to stop because of an unhandled
exception.

Change-Id: Ibf65a69c35ba92ea62bee91a67f43975b97052ca
src/admin/logic/Logic.cpp
src/common/protocol/ProtocolAdmin.cpp
src/common/protocol/ProtocolAdmin.h
src/service/logic/Logic.cpp