summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix invalid iterator in display capabilities builderfix/unsubscribe_vehicle_data_crashjacobkeeler2021-01-261-1/+2
|
* Fix invalid iterators in resumption data processorjacobkeeler2021-01-261-7/+7
|
* Fix invalid iterators in application helper and rc app extensionjacobkeeler2021-01-262-7/+8
|
* Fix invalid use of erase while iterating through VI setjacobkeeler2021-01-251-2/+2
| | | | Copies the contents of `vi_waiting_for_unsubscribe_` and iterate through the copy to prevent editing the container while iterating
* fix unit tests with with -DENABLE_SECURITY=OFF (#3615)Collin2021-01-2511-8/+13
| | | | | | | | | * include endian conversions in protocol handler tests even when security is off * exclude transport manager tests expecting call to ws_server_ca_cert_path when security is off * require ENABLE_SECURITY for ProcessFailedCertDecrypt * add return with assert for release mode
* Fix getting SSL context in CryptoManager (#3582)Andrii Kalinich (GitHub)2021-01-212-7/+26
| | | | | | | | | | | | | | | | * Fix getting SSL context in CryptoManager This PR fixes way of getting SSL context from SSL connection. Direct access works well in 1.0.2 version, however this field became unavailable in 1.1.1 version which causes SDL build to fail. In order to make this change working on all lib versions as expected, direct access has been replaced with convenient getter function from the same library. * Update certificate generation script * Change hash function from md5 to sha256 Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com>
* SYNC-73520: Fixed Issue related to SetAppIcon Path (#3407)Alexander Kutsan (GitHub)2021-01-203-17/+4
| | | | | | | | | | | | | | * SYNC-73520: Fixed Issue related to SetAppIcon Path SYNC-73520 Removed the call to the function ConvertPathForURL() which was modifying the path as a URL Converting "!#$&'()*+,:;=?@[] " to there corresponding hex values. This function is not required for path. Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com> Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com> Co-authored-by: LitvinenkoIra <ilytvynenko@luxoft.com> Co-authored-by: Sidhartha <ssing314@ford.com>
* Fix for a potential SDL crash on boot (#3581)Yana Chernysheva (GitHub)2021-01-156-31/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix for a potential SDL crash on boot One of the reasons why SDL is crashing on start is related to lazy initialization of the HMI/Mobile/v4 API classes. These classes are initializated on demand when some of threads are trying to get the object of that class first time. Most likely, at SDL start might be a situation when HMI/Mobile/v4 API classes are constructing in the one thread and at that moment another thread is trying to get access to the inner data of not-yet-fully-constructed object and this causes a core crash with ~ISchemaItem() calls in stack trace. That is possible because access to these factories is not synchronized. To avoid such situation, factory creation was moved to AM ctor and all other sub components just use getters when they need to get access to API instances. * fixup! Fix for a potential SDL crash on boot Co-authored-by: Dmitriy Boltovskiy <dboltovskyi@luxoft.com> Co-authored-by: LitvinenkoIra <ilytvynenko@luxoft.com>
* Feature/sdl 0285 ShowConstantTBT update (#3596)Ira Lytvynenko (GitHub)2021-01-152-4/+2
| | | * Update the descriptions
* Fix issue with resumption after unexpected disconnect in current ignition ↵Yana Chernysheva (GitHub)2021-01-141-6/+20
| | | | cycle (#3608)
* Add Custom Playback Rate to SetMediaClockTimer (SDL 0244) (#3597)Jacob Keeler2021-01-142-0/+7
| | | * Add countRate to HMI API
* Fix/Revoked App Consent Activation (#3592)Shobhit Adlakha2021-01-113-6/+15
| | | | | | | | | | | | | * Add permissions check in OnAllowSDLFunctionalityNotification for application revoked case * Fix unit tests * Fix unit tests * Use IsApplicationRevoked instead of GetAppPermissionChanges * Fix IsApplicationRevoked check * Add check to prevent setting last_activated_app_id_ for revoked app
* Fix applying heart_beat_timeout_ms from PreDataConsent (#1551)Veronica Veremjova (GitHub)2020-12-224-3/+43
| | | | | | | | | | | | | | | | * Fix applying heart_beat_timeout_ms from PreDataConsent After sending SDL.OnAllowSDLFunctionality(allowed = false) application is assigned to PreDataConsent group. After this HB timeout is set to timeout from PreDataConsent * Updated logs messages and simplify vars after review * Update unit tests * Fix syntax errors after rebase * fixup! Fix syntax errors after rebase Co-authored-by: Veronica Veremjova <vveremjova@luxoft.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
* Fix success=false after UNSUPPORTED_RESOURCE response for multiple RPCs (#3587)Jacob Keeler2020-12-216-63/+63
| | | | | * Fix success=false after UNSUPPORTED_RESOURCE response for multiple RPCs Fixes issue for PerformInteraction, Alert, SubtleAlert, AlertManeuver, and PerformAudioPassThru
* Fix build failure with ENABLE_LOG=OFF (#3604)Jacob Keeler2020-12-174-10/+8
| | | | | * Fix build failure with ENABLE_LOG=OFF Also fix unused variable warnings caused by the same configuration
* Merge pull request #3602 from smartdevicelink/fix/on_vehicle_data_policiesJacob Keeler2020-12-161-3/+3
|\ | | | | Fix variable usage in OnVehicleDataNotification
| * Fix variable usage in OnVehicleDataNotificationfix/on_vehicle_data_policiesjacobkeeler2020-12-151-3/+3
| |
* | Merge pull request #3598 from smartdevicelink/fix/revoked_app_policy_fieldsJacob Keeler2020-12-162-5/+10
|\ \ | | | | | | Check for revoked apps when reading mandatory policy fields
| * | Check for revoked apps when reading mandatory policy fieldsfix/revoked_app_policy_fieldsjacobkeeler2020-12-112-5/+10
| |/
* | Merge pull request #3601 from smartdevicelink/fix/onwaypointchange_unit_testsJacob Keeler2020-12-153-1/+18
|\ \ | | | | | | Fix failing unit tests in hmi_notifications_test
| * | Fix unit tests in hmi_notifications_testfix/onwaypointchange_unit_testsjacobkeeler2020-12-143-1/+18
| |/
* | Merge pull request #3600 from ↵JackLivio2020-12-151-0/+2
|\ \ | |/ |/| | | | | smartdevicelink/fix/bind_protocol_version_at_registration Bind protocol version when app registers
| * Bind protocol version when app registersfix/bind_protocol_version_at_registrationJackLivio2020-12-141-0/+2
|/
* Merge pull request #3590 from smartdevicelink/fix/vehicle_data_params_omittedJacob Keeler2020-12-101-9/+16
|\ | | | | Handle omitted parameter permissions properly in OnVehicleData notification
| * Fix stylefix/vehicle_data_params_omittedjacobkeeler2020-12-091-2/+1
| |
| * Handle omitted parameter permissions properly in OnVehicleData notificationjacobkeeler2020-12-021-9/+17
| |
* | Add OnWayPointChange handling for NAVIGATION app services (#3573)Jacob Keeler2020-12-0924-102/+406
|/ | | | | * Add OnWayPointChange handling for NAVIGATION app services * Only send OnWayPointChange to mobile from active waypoints provider
* allow all OnSystemRequest types to contain binary data (#3575)Collin2020-11-191-20/+14
|
* close namespace (#3574)Collin2020-11-191-0/+1
|
* Merge pull request #3578 from ↵Jacob Keeler2020-11-181-2/+1
|\ | | | | | | | | smartdevicelink/fix/gpcd_consumer_friendly_messages Re-add messages field in policy table json
| * Re-add messages field in policy table jsonfix/gpcd_consumer_friendly_messagesjacobkeeler2020-11-171-2/+1
|/ | | | consumer_friendly_messages.messages was being omitted from the policy table json rather than just the snapshot, this reintroduces this field (this field is still cleared out when generating the snapshot in `CheckSnapshotInitialization`)
* Fix policy validation of OnVehicleData message (#3568)Jacob Keeler2020-11-162-3/+38
| | | | | | | * Fix policy validation of OnVehicleData message * Fix unit tests Co-authored-by: Mykola Korniichuk <mkorniichuk@luxoft.com>
* Merge pull request #3572 from smartdevicelink/fix/fix_session_heartbeat_startingJackLivio2020-11-1311-21/+92
|\ | | | | Fix session heartbeat starting
| * Fix unit testsJackLivio2020-11-133-15/+12
| |
| * Fix errors from merge conflictsfix/fix_session_heartbeat_startingJackLivio2020-11-124-6/+6
| |
| * Merge remote-tracking branch 'origin/develop' into ↵JackLivio2020-11-104650-587187/+266946
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | fix/fix_session_heartbeat_starting # Conflicts: # src/components/connection_handler/include/connection_handler/heartbeat_monitor.h # src/components/connection_handler/src/connection.cc # src/components/connection_handler/src/heartbeat_monitor.cc # src/components/protocol_handler/src/protocol_handler_impl.cc
| * | Added check if HB tracking for session is already enabledAKalinich-Luxoft2017-12-2210-8/+74
| | | | | | | | | | | | | | | This prevents SDL from starting HB session tracking every time SDL receives HB request from mobile.
| * | Fix starting of the session HeartbeatAKalinich-Luxoft2017-12-223-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the current implementation SDL starts session heartbeat right after application registration. However the correct behavior is to start session heartbeat after first heartbeat request from mobile app. Following changes were done: - Removed starting session heartbeat on app registration - Added session heartbeat start on frist heartbeat request from mobile app - Added check to prevent starting of session heartbeat if it was disabled in settings
* | | Cover connection handler and policy handler with unit tests (#2682)Mykola Korniichuk (GitHub)2020-11-129-153/+1553
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cover connection handler and policy handler with unit tests Few tests added to connection_handler_impl_test.cc and to connection_test.cc There were 2 mocks for telemetry observer. So, one is removed (src/components/include/test/protocol_handler/mock_telemetry_observer.h) Fixed mock_telemetry_observer.h (src/components/protocol_handler/ test/include/protocol_handler/mock_telemetry_observer.h) Added tests to protocol_handler_tm_test.cc set_hash_id and get_hash_id are covered with unit tests. set_hash_id, get_hash_id, ConvertPacketDataToString, get_protocol_observers_count declarations are added to protocol_handler_impl.h under BUILD_TEST flag. Resolves: #2449 * fix according to comments * Unit test for get_hash_id and set_hash_id Removed declarations for internal functions get_hash_id and set_hash_id ConvertPacketDataToString moved to convert_utils as ConvertBinaryDataToString Fixed unit tests for get_hash_id and set_hash_id * replace dcheck or return to if in ConvertBinaryDataToString due to issue in smoke tests * minor UT fixes * Update doxygen for convert_utils * Address comments and fix UT Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
* | Merge remote-tracking branch 'origin/master' into developJackLivio2020-11-05225-3896/+3302
|\ \
| * \ Merge pull request #3551 from smartdevicelink/release/7.0.07.0.0JackLivio2020-11-051095-106525/+50935
| |\ \ | | | | | | | | 7.0.0 Release
| | * | Update rpc_spec tag for 7.0.0JackLivio2020-11-051-0/+0
| | | |
| | * | ensure apps receive default HMI status before activated status (#3559)7.0.0-RC2release/7.0.0Collin2020-10-2910-15/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove cloud app exception from StateControllerImpl::OnApplicationRegistered * Fix/ Postpone application activation if registration is not complete yet (#3557) * Postpone application activation if registration is not complete yet * fixup! Postpone application activation if registration is not complete yet * fixup! Postpone application activation if registration is not complete yet Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com> * fix style * fix unit tests Co-authored-by: Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
| | * | remove possibility for invalid choice ID to be sent to mobile (#3555)Collin2020-10-291-10/+15
| | | |
| | * | Fix a/v streaming retry sequence issues (#3552)Andrii Kalinich (GitHub)2020-10-264-60/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were noticed two issues related to a/v streaming: 1. Due to object self destruction after TerminateRequest() call any attempt to access member field of that object may cause an undefined behavior - it might be a core crash or corrupted value sometimes. In this particular case, SDL tries to access `message_` field through `application_id()` function after object destruction. As a result, sometimes SDL crashes and sometimes this function just returns 0. Because of that, SDL was not able to find application by zero id and broke the retry sequence. This causes random failures of some ATF scripts. To avoid that issue, all retry logic was extracted into the separate function and `TerminateRequest` was moved after that function. This will guarantee that there is no attempts to access object fields after its destruction. 2. There was noticed that SDL makes one redundant retry attempt. That was because of late retry value increment. To fix that issue, increment has been placed before retry amount check.
| | * | Bugfix 2808 copy (#3546)JackLivio2020-10-262-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix issue 2808:SDL Crash seen in SDL upon receiving rpc - OnEmergencyEvent with enabled:true * change code stype * Fix conflicts * Fix log * Fix crash * Address comments Co-authored-by: zhangwenqin <zhangwenqin@iauto.com>
| | * | Fix sdl sends unexpected disconnect with resource constraint (#3516)Serhii Niukalov (GitHub)2020-10-2314-13/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework processing of the OnExitApplication (RESOURCE_CONSTRAINT) notification * Update UTs according to changes Co-authored-by: sniukalov <sniukaov@luxoft.com> Co-authored-by: Aleksandr Kutsan <AKutsan@luxoft.com> Co-authored-by: jacobkeeler <jacob.keeler@livioradio.com> Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
| | * | Fix formatting for logs after logger overhaul (#3554)Jacob Keeler2020-10-2341-264/+134
| | | | | | | | | | | | | | | | | | | | * Fix formatting for logs after logger overhaul Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
| | * | Add missed NACK reasons (#3545)Yana Chernysheva (GitHub)2020-10-2317-201/+204
| | | | | | | | | | | | * Add missed NACK reasons, update UTs and add minor changes
| | * | Fix application activation after resumption (#3550)Yana Chernysheva (GitHub)2020-10-225-28/+18
| | | | | | | | | | | | | | | | | | | | * Set is_resuming flag to false * Change return value in RestoreAppHMIState and StartAppHmiStateResumption