summaryrefslogtreecommitdiff
path: root/src/components/application_manager
Commit message (Collapse)AuthorAgeFilesLines
* Changed ParsePTString() to return the calculated content lengthhotfix/fix_request_header_typo_and_content_length_calculationJackLivio2016-07-012-7/+8
|
* Fix "Content-Length" Spelling and CalculationJackLivio2016-06-232-10/+21
| | | | | | | | Content-Length was using an underscore instead of a Hyphen. Android was throwing an exception because there was no "Content-Length" key supplied in the request header. Fixed the way the Content-Length is calculated. Android removes the extra backslashes before sending the request to sdl server so I have Content-Length calculated first before "ParsePTString()" is called. Then contentLength is sent to ParsePtString to be adjusted if characters are removed from the parsed policy table string (ie '\n' the newline character). Tested on android and ios.
* ParsePTString to Modify string, instead of returning a copyhotfix/add_escape_characters_during_ptu_header_constructionJackLivio2016-06-202-7/+7
|
* Parse PT String for HTTP Request BodyJackLivio2016-06-082-2/+19
| | | | | | The "body" portion of the httprequest needs to be a valid string. Before this fix, the policy table content of the request did not have properly escaped double quotes and was causing the JSON received by the mobile side to be considered invalid. The new method "ParsePtString()" adds an escaped backslash during every occurance of a double quote or other escaped backslash. This method also removes any newlines located in the policy table string.
* Fixes retry sequence implementationAnton Hrytsevich2016-05-132-13/+14
| | | | | | Adopts changes done originally regaring issue: [APPLINK-19543] Closes-bug: APPLINK-24295
* Fixes setting of default HMI level during application registrationAndrey Oleynik2016-05-139-3325/+3328
| | | | | | | | | During registration default HMI level must be set before sending of any RPCs to mobile side since every RPC must be validated by policy. These changes have been taken from develop branch and were originally related to APPLINK-20111. Closes-bug: APPLINK-24294
* Merge pull request #483 from smartdevicelink/hotfix/14AGaliuzov2016-05-101-1/+2
|\ | | | | Fixes #14 Wrap unused param (while logger is off) in ifdef
| * Wrap unused param (while logger is off) in ifdefhotfix/14Justin Dickow2016-04-121-1/+2
| | | | | | | | Have to do this because compiler treating warnings as errors
* | Fixes build warning for 32-bit UbuntuAndrey Oleynik2016-04-281-1/+1
| | | | | | | | Implements: APPLINK-22313
* | Changes logic of GetURLs and OnSystemRequest according to new APIAndrey Oleynik2016-04-282-9/+14
| | | | | | | | Implements: APPLINK-24247, APPLINK-24248
* | Wrapped extended policy logic with ifdef, code beautified.Andrey Oleynik2016-04-114-40/+54
| | | | | | | | | | | | | | Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
* | Adds HTTP header to message being sent with OnSystemRequestAndrey Oleynik2016-04-112-26/+90
| | | | | | | | | | | | | | | | | | | | SDL must to add HTTP header which provides policy snapshot data within that header along with timeouts and message size. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/mobile/on_system_request_notification.cc
* | Adds new logic of GetURLs processing for extended policy modeAndrey Oleynik2016-04-112-16/+123
| | | | | | | | | | | | | | | | | | | | SDL must pick an application and send appropriate URL in GetURLs response. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/commands/hmi/get_urls.cc
* | Beatufies GetURL command code, no logic changedAndrey Oleynik2016-04-111-40/+41
| | | | | | | | | | Conflicts: src/components/application_manager/src/commands/hmi/get_urls.cc
* | Adds sending of BC.PolicyUpdate to systemAndrey Oleynik2016-04-112-7/+17
|/ | | | | | | | | | In case of EXTENDED_POLICY enabled SDL must send BC.PolicyUpdate to system instead of direct OnSystemRequest sending. Implements: APPLINK-22313 Conflicts: src/components/application_manager/src/policies/policy_handler.cc
* Merge pull request #456 from ↵4.0.10AGaliuzov2016-04-0612-10/+527
|\ | | | | | | | | dev-gh/hotfix/DialNumber_functionality_implementation Adds implementation of DialNumber RPC
| * More style changesAndrey Oleynik2016-04-064-7/+7
| |
| * Code style changesAndrey Oleynik2016-04-052-2/+2
| |
| * Adds latest number validation changesAndrey Oleynik2016-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | According to latest information number should be verified as: "Phone number is a string, which can be up to 40 chars. All characters shall be stripped from string except digits 0-9 and * # , ; +" Implements: APPLINK-11266
| * Adds implementation of DialNumber RPCAndrey Oleynik2016-04-0412-8/+525
| | | | | | | | | | | | | | DialNumber allows to initiate call from user's device trough device attached to the system. Implements: APPLINK-11266
* | Merge pull request #449 from ↵AGaliuzov2016-04-041-8/+13
|\ \ | | | | | | | | | | | | okoreniak/hotfix/Fixed_SDL_do_not_send_two_OnHMIStatus_notifications_to_LAUNCHED_App Fixed SDL to do not send two OnHMIStatus notification to launched app…
| * | Fixed SDL to do not send two OnHMIStatus notification to launched applicationOleksandr Koreniak2016-03-301-8/+13
| | | | | | | | | | | | | | | Updated processing of RegisterAppInterfaceRequest::SendRegisterAppInterfaceResponseToMobile(). Added test for the application hmilevel before assigning the default hmilevel and performing resumptions.
* | | Merge pull request #433 from ↵AGaliuzov2016-04-041-73/+416
|\ \ \ | |_|/ |/| | | | | | | | okoreniak/hotfix/Fixed_Validator_In_SystemRequest_QUERY_APPS_processing Hotfix/fixed validator in system request query apps processing
| * | Code for synonyms validation moved to functionOleksandr Koreniak2016-04-041-103/+127
| | |
| * | Added validator in processing of SystemRequest(QUERY_APPS)Oleksandr Koreniak2016-04-011-77/+396
| | | | | | | | | | | | Added class QueryAppsDataValidatorTemplate<SmartObject> to validate request data.
* | | Remove line containing PRId64hotfix/446Justin Dickow2016-03-291-1/+0
| | | | | | | | | | | | This was causing issues with certain compilers, and the code is never run.
* | | Merge pull request #430 from ↵AGaliuzov2016-03-241-0/+8
|\ \ \ | | | | | | | | | | | | | | | | dev-gh/hotfix/Buttons.GetCapabilities_response_handling_fix Fixes ressetting of default buttons capabilities
| * | | Fixes ressetting of default buttons capabilitiesAndrey Oleynik2016-03-231-0/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | In case of error response for Buttons.GetCapabilities SDL was resetting default buttons capabilities (from JSON file) to null. This change adds checking of response result code to avoid that issue. Closes-bug: APPLINK-22416
* | | Following APPLINK-21499 discussion, set mobile command timeoutAsen Kirov2016-03-231-1/+2
|/ / | | | | | | | | | | | | | | | | | | equal to slider RPC timeout plus default command timeout Conflicts: src/components/application_manager/src/commands/mobile/slider_request.cc Conflicts: src/components/application_manager/src/commands/mobile/slider_request.cc
* | Fixes issue with SDL data resetting during MASTER_RESETAndrey Oleynik2016-03-112-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two deadlocks during unregistering of all apps because of MASTER_RESET: - ApplicationManagerImpl::UnregisterAllApplications vs ConnectionHandler::CloseSessionServices - ApplicationManagerImpl::UnregisterApplication vs ApplicationManagerImpl::RemoveAppFromTTSGlobalPropertiesList That was causing reset flow blocking and data had not been cleaned up completely. Closes-bug: APPLINK-22117 Conflicts: src/components/application_manager/include/application_manager/application_manager_impl.h src/components/application_manager/src/application_manager_impl.cc src/components/connection_handler/include/connection_handler/connection_handler_impl.h src/components/connection_handler/src/connection_handler_impl.cc
* | Merge pull request #404 from smartdevicelink/hotfix/fix_pt_sendMessagetoSDK4.0.5AGaliuzov2016-03-072-6/+3
|\ \ | | | | | | Fix for sending policy table snapshot (Genivi implementation)
| * | Fix for sending policy table snapshothotfix/fix_pt_sendMessagetoSDKJackLivio2016-03-032-6/+3
| |/ | | | | | | | | | | Policy handler was checking an unimplemented contained last_used_app_ids_. Replaced with 'GetAppIdForSending() to properly find app id to send policy snapshot to. Also in message_helper.cc, I fixed the url paremeter to what actually corresponds to onSystemRequests in the mobile_api.xml
* | Add NOT to checking if app is in full for OK button notificationhotfix/ok_button_notification_fixJackLivio2016-02-151-1/+1
|/
* Merge pull request #375 from smartdevicelink/hotfix/fix_IviInfoUpdated_queryAGaliuzov2016-02-091-1/+1
|\ | | | | Fixed IviInfoUpdated App Query
| * Fixed IviInfoUpdated App Queryhotfix/fix_IviInfoUpdated_queryJackLivio2016-02-031-1/+1
| | | | | | | | The query in IviInfoUpdated was only returing connected navigation apps. It now returns apps that are subscribed to vehicle info.
* | Merge pull request #349 from ↵AGaliuzov2016-02-081-39/+37
|\ \ | |/ |/| | | | | LuxoftSDL/hotfix/SDL_transfers_PlayTone_parameter_to_HMI_in_Speak_request_from_mobile SDL transfer PlayTone parameter to HMI in speak request.
| * SDL transfer PlayTone parameter to HMI in speak request.dtrunov2016-01-251-39/+37
| | | | | | | | | | | | | | Added ability to remove fake parameter according with MOBILE_API.xml Closes-bug:[APPLINK-17980](https://adc.luxoft.com/jira/browse/APPLINK-17980)
* | Merge pull request #359 from ↵Artem Nosach2016-02-021-2/+2
|\ \ | | | | | | | | | | | | LuxoftSDL/hotfix/Fix_build_fail_with_disabled_logging Fix build fail with disabled logging
| * | Fix build fail with disabled loggingboniaslasher2016-01-271-2/+2
| | | | | | | | | | | | | | | | | | Build fail due to missing link to map definition, which automatically added when logging enabled. Also removed c-style call.
* | | Change updateRequestTimeout to TerminateRequestHerasym Oleh2016-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | Fix incorrect behavior Related: APPLINK-17652
* | | Add DeleteChoices to ontimeOutHerasym Oleh2016-01-281-0/+1
|/ / | | | | | | | | | | | | | | | | Fix defect: SDL doesn't send VR.DeleteCommand to HMI in case ChoiceSet commands and HMI sends a VR.AddCommand responses with error Related: APPLINK-17652
* | Merge pull request #337 from smartdevicelink/hotfix/dcheck_crash4.0.3AGaliuzov2016-01-251-2/+0
|\ \ | | | | | | Remove DCHECKs that seem to always be tripping everyone up
| * | Remove DCHECKs that seem to always be tripping everyone uphotfix/dcheck_crashJustin Dickow2016-01-191-2/+0
| |/
* | removed redundant includes fixes #223hotfix/redundant_includesJustin Dickow2016-01-191-2/+0
|/
* Merge remote-tracking branch 'genivi-upstream/release/4.0.0'4.0.1Artem Nosach2015-12-145-5/+35
|\
| * Merge pull request #284 from LuxoftSDL/hotfix/Core_dump_if_make_MASTER_RESETAGaliuzov2015-12-072-2/+14
| |\ | | | | | | Hotfix/core dump if make master reset
| | * Increase of scope of lock in method Handle()dtrunov2015-12-011-6/+5
| | | | | | | | | | | | | | | | | | Increase of scope of lock in method Handle() in order to exclude problem with core crash. Closes-bug: APPLINK-17367
| | * Fix core crash during MASTER_RESETdtrunov2015-12-012-2/+15
| | | | | | | | | | | | | | | | | | Forbid processing message from mobile if Core begins stopping of work. Closes-bug: APPLINK-17367
| * | Merge pull request #282 from ↵AGaliuzov2015-12-041-2/+2
| |\ \ | | | | | | | | | | | | | | | | LuxoftSDL/hotfix/SDL_writes_to_DB_incorrect_value_as_imageType_after_IGN_CYCLE Add checking of SO field.
| | * | Add checking of SO field.dtrunov2015-12-011-2/+2
| | |/ | | | | | | | | | | | | | | | | | | Add checking of SO field during creation of request to HMI. If user calls to nonexistent field from SO, SO creates this field with default value. Closes-bug: APPLINK-13006