diff options
author | atimchenko <atymchenko@luxoft.com> | 2016-12-13 12:41:44 +0200 |
---|---|---|
committer | atimchenko <atymchenko@luxoft.com> | 2016-12-14 12:03:12 +0200 |
commit | eb9c272d809290e24ba8e223d300421063d80fe7 (patch) | |
tree | ff3f605ae4cd352d8a82d8b61c073995674e64bd | |
parent | 8b67d3aef849f8a65c2516324b8ec23c39d4c8e2 (diff) | |
download | sdl_core-eb9c272d809290e24ba8e223d300421063d80fe7.tar.gz |
Fix incorrect response on send SystemRequest
SDL should response with INVALID DATA result code if binary data is invalid.
Fixed defect APPLINK-22982
-rw-r--r-- | src/components/application_manager/src/commands/mobile/system_request.cc | 4 |
1 files changed, 2 insertions, 2 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 b9acf5e930..4187184dde 100644 --- a/src/components/application_manager/src/commands/mobile/system_request.cc +++ b/src/components/application_manager/src/commands/mobile/system_request.cc @@ -528,8 +528,8 @@ void SystemRequest::Run() { } if (!(mobile_apis::RequestType::HTTP == request_type && 0 == origin_file_name.compare(kIVSU))) { - LOG4CXX_DEBUG(logger_, "Binary data required. Reject"); - SendResponse(false, mobile_apis::Result::REJECTED); + LOG4CXX_DEBUG(logger_, "Binary data required. Invalid data"); + SendResponse(false, mobile_apis::Result::INVALID_DATA); return; } LOG4CXX_DEBUG(logger_, "IVSU does not require binary data. Continue"); |