| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Adopts changes done originally regaring issue: [APPLINK-19543]
Closes-bug: APPLINK-24295
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Implements: APPLINK-22313
Conflicts:
src/components/application_manager/src/commands/hmi/on_received_policy_update.cc
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
DialNumber allows to initiate call from user's device trough device
attached to the system.
Implements: APPLINK-11266
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |\
| | |
| | | |
Hotfix/core dump if make master reset
|
| | |
| | |
| | |
| | |
| | |
| | | |
Forbid processing message from mobile if Core begins stopping of work.
Closes-bug: APPLINK-17367
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When we stop AM we unregister apps and call StopSavePersistentDataTimer().
If the timer callback by chance is active at this moment we can have a
deadlock between AM and ResumeController. To prevent it limit the lifetime
of ApplicationListAccessor and allow ResumeController to finish his job.
Another option is to move resume_controller().OnSuspend() call before
unregitering apps.
Another deadlock problem arises when while destroying AM an app tries to
register (3 seconds before that actually). Then AM tries to destroy
ResumeController, but RC is in ApplicationResumptiOnTimer() callback
and tries to get AM instance, and blocks on AM singleton's lock. The
fix is to StopRestoreHmiLevelTimer() before destroyng AM.
A third reason for SDL not stopping normally is when a logger is writing
on a socket, but the client on the other side is not reading (and is not
closing the socket neither). Then write() blocks and logger, and therefore
SDL, cannot be stopped. The fix is to put timeout option to the socket.
|
|/
|
|
|
|
|
|
| |
There was the bug in notification parameter naming
the SmartObject has removed invalid parameter `policyAppId`
the proper name for the parameter is `policyAppID`.
Closes-Bug: [APPLINK-18660](https://adc.luxoft.com/jira/browse/APPLINK-18660)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When SDL is started, but the HMI is not, and we try to register a mobile
app (RegisterAppInterfaceRequest), then in this situation SDL can't be
stopped with ctrl+C - it enters in an endless cycle.
The reason for the problem is that we can't delete the AM, because the
RequestController thread of AM is still running (waiting in a cycle for
the HMI to respond). Also a second AM is created, because in the
Singleton we set to 0 the instance pointer before deleting it and
someone calls instance() before destroy() finishes, because there is no
common lock. The separate locks create a race condition.
The fix is to use a single mutex for the Singleton methods, introduce a
is_stopping_ flag in AM, set it to true in AM's Stop() method, and
also destroy RequestController's thread pool there.
Then check stop flag in RegisterAppInterfaceRequest::Run() and exit the
HMI waiting cycle there.
|
|\
| |
| | |
Changed device_info id to string and mac_address
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SDL will send request to get SW version from vehichle and also will
provide SDL and SW version within RAI response for each application.
Implements: APPLINK-11284
Conflicts:
src/components/application_manager/src/application_manager_impl.cc
|
|/
|
|
|
|
|
|
|
| |
Conflicts:
src/appMain/smartDeviceLink.ini
src/components/application_manager/include/application_manager/hmi_capabilities.h
src/components/application_manager/src/commands/hmi/get_system_info_response.cc
src/components/application_manager/src/hmi_capabilities.cc
src/components/config_profile/src/profile.cc
|
|\
| |
| | |
Fixes conversion of language codes coming from HMI
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Due to wrong conversion some languages couldn't be found in policy DB.
Also some recently added languages haven't been processed.
Fixes: APPLINK-15726
Conflicts:
src/components/policy/src/policy/src/cache_manager.cc
|
|/
|
|
|
|
|
| |
hmi_level member of RequestInfo objects was not used. It caused problem when counting requests with
specific hmi_level.
Closes-bug: APPLINK-14320
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Hotfix/fixed setting preloaded flag
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
LuxoftSDL/hotfix/Fix_wrong_unexpectedDisconnect_flag_setting_on_app_unauthorized
APPLINK-12868. Fixed wrong unexpectedDisconnect flag setting.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Fixed unexpectedDisconnect flag on application unauthorizing during PTU
processing.
Conflicts:
src/components/application_manager/src/application_manager_impl.cc
src/components/connection_handler/include/connection_handler/connection_handler.h
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
Conflicts:
src/components/application_manager/src/commands/mobile/create_interaction_choice_set_request.cc
src/components/application_manager/test/request_info_test.cc
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
Conflicts:
src/components/application_manager/src/commands/hmi/ui_get_capabilities_response.cc
src/components/interfaces/MOBILE_API.xml
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
src/components/application_manager/src/message_helper.cc
src/components/application_manager/test/mock/include/application_manager/application_manager_impl.h
src/components/interfaces/HMI_API.xml
src/components/transport_manager/test/include/mock_transport_adapter.h
|
|\ \ |
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| | |
Conflicts:
src/components/application_manager/src/application_manager_impl.cc
|
|\ \ |
|
| | | |
|
| |/ |
|