summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerasym Oleh <oolleehh@gmail.com>2016-07-06 17:05:13 +0300
committerHerasym Oleh <oolleehh@gmail.com>2016-07-07 11:40:15 +0300
commiteb0ed5c728772e901ec0c67ce0a70f0febf9184f (patch)
tree53774b8bf5ccffb4e5757a3eae7e195ea9fd034f
parent22862e55b3fa27ffae28afcf8e819426dfe97b2c (diff)
downloadsdl_core-eb0ed5c728772e901ec0c67ce0a70f0febf9184f.tar.gz
Fix system_request on HTTP don't update Policy table
Related: APPLINK-24507
-rw-r--r--src/components/application_manager/src/commands/mobile/system_request.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/application_manager/src/commands/mobile/system_request.cc b/src/components/application_manager/src/commands/mobile/system_request.cc
index 5b0380c3e2..cd2418f52e 100644
--- a/src/components/application_manager/src/commands/mobile/system_request.cc
+++ b/src/components/application_manager/src/commands/mobile/system_request.cc
@@ -530,7 +530,15 @@ void SystemRequest::Run() {
LOG4CXX_DEBUG(logger_, "Binary data ok.");
- if (mobile_apis::RequestType::QUERY_APPS == request_type) {
+ if (mobile_apis::RequestType::HTTP == request_type &&
+ (*message_)[strings::msg_params].keyExists(strings::file_name)) {
+ const std::string& file =
+ (*message_)[strings::msg_params][strings::file_name].asString();
+ application_manager_.GetPolicyHandler().ReceiveMessageFromSDK(file,
+ binary_data);
+ SendResponse(true, mobile_apis::Result::SUCCESS);
+ return;
+ } else if (mobile_apis::RequestType::QUERY_APPS == request_type) {
using namespace NsSmartDeviceLink::NsJSONHandler::Formatters;
smart_objects::SmartObject sm_object;