summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add missing until param for enumeration elementsfix/support_until_for_enum_elementsYevhenii Dementieiev (GitHub)2020-02-191-0/+1
|
* Merge pull request #3241 from smartdevicelink/fix/hash_id_rejected_paramsJacob Keeler2020-02-171-1/+2
|\ | | | | Properly populate rejectedParams for EndServiceNACK
| * Merge remote-tracking branch 'origin/develop' into fix/hash_id_rejected_paramsJackLivio2020-02-17100-625/+1399
| |\
| * | Properly populate rejectedParams for EndServiceNACKfix/hash_id_rejected_paramsjacobkeeler2020-02-101-1/+2
| | |
* | | Merge pull request #3214 from smartdevicelink/fix/3rd_party_build_issuesJacob Keeler2020-02-171-23/+34
|\ \ \ | |_|/ |/| | Fix issue where building the logger would rebuild all other 3rd party libraries
| * | Merge remote-tracking branch 'origin/develop' into fix/3rd_party_build_issuesfix/3rd_party_build_issuesJackLivio2020-02-17416-19604/+4924
| |\ \ | |/ / |/| |
* | | Fix LastState methods thread safe access (#2626)Ira Lytvynenko (GitHub)2020-02-1494-604/+1368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix LastState instance thread safe access Fix LastState instance thread safe access and update dictionary usages in app launch and resumption. There was implemented LastStateWrapper class for providing exclusive thread safe access to LastState instance from all places in the program. Also passing LastState object was replaced with LastStateWrapper object to avoid direct access to LastState instance from another components. Thus there were a small updates in architecture of AM and TM classes. * Fixed mocks and unit tests related to LastState class * Add LastStateWrapper interface and LastStateWrapperPtr typedef * Fix tests after adding LastStateWrapper interface * Deprecate methods with changed signature * Adapt RCConsentManager according to LastState functionality There are some deprecated methods in LastState that are used by RCConsentManager. In addition, LastState::dictionary method returns reference to dictionary no more - only copy of latter. * Adapt AppServiceManager to new LastState usage * Adapt transport manager to new LastState usage * Adapt RPCPlugin to new LastState usage * Adapt AppServiceRPCPlugin to new LastState usage * Adapt RCRPCPlugin to new LastState usage * Adapt SDLRPCPlugin to new LastState usage * Adapt VehicleInfoPlugin to new LastState usage * Adapt existing unit tests * Fix ENABLE_LOG off build failure * Replace old-style loops with range based * Fix potential mutex deadlocks in resumption storage * Add Mutable Data Accessor. The entity that provides the thread-safe mutable access to data. * Fix submodule issues after merge Co-authored-by: Alexander Kutsan (GitHub) <akutsan@luxoft.com> Co-authored-by: Yaroslav Mamykin (GitHub) <33784535+YarikMamykin@users.noreply.github.com> Co-authored-by: Igor Gapchuk (GitHub) <41586842+IGapchuk@users.noreply.github.com> Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* | | Fix core crash on accesing the application pointer. (#3194)Igor Gapchuk (GitHub)2020-02-122-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix core crash on accesing the application pointer. The issue will occur when the state controller gets an application collection from the application manager and tries to apply a functor to each application. One of the application's pointers could be uninitialized and the state controller should check if pointer is valid. * fixup! Fix core crash on accesing the application pointer.
* | | Prevent creation of SSL context during certificate updating (#2777)Stanislav Kobziev (GitHub)2020-02-112-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent creation of SSL context during certificate updating Added sync primitive into CryptoManagerImpl as class member and added lock into OnCertificateUpdated, CreateSSLContext methods for preventing race conditions * fixup! Prevent creation of SSL context during certificate updating Co-authored-by: Yevhenii Dementieiev (GitHub) <57259850+ydementieiev@users.noreply.github.com>
* | | Fix ApplicationSet reference variables are not lock-protected (#3230)Jim-Nexty2020-02-101-2/+2
| | | | | | | | | | | | | | | | | | * Fix for SDL Core crash after quickly and repeatedly connect/disconnect USB cable * modify code style
* | | Fix for Bug:Deadlock happens during video streaming (#3231)Jim-Nexty2020-02-101-12/+16
| |/ |/| | | | | Co-authored-by: Collin <iCollin@users.noreply.github.com>
* | Fix for No mechanism for managing the switching sequence(Start/StopSt… (#3217)Jim-Nexty2020-02-071-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix for No mechanism for managing the switching sequence(Start/StopStreaming) * change the code style * change the code style * Update src/components/application_manager/src/application_manager_impl.cc Co-Authored-By: Collin <iCollin@users.noreply.github.com> * Update src/components/application_manager/src/application_manager_impl.cc Co-Authored-By: Collin <iCollin@users.noreply.github.com> * change to cpp11 based loop and remove the useless else Co-authored-by: Collin <iCollin@users.noreply.github.com>
* | fix warning in compiling core (#3236)Collin2020-02-061-2/+1
| | | | | | remove reference to deprecated StyledStreamWriter
* | #3211 [SDL 0234] Proxy Library RPC Generation (#3213)Vladyslav Mustafin2020-02-0636-2493/+1148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #3211 [SDL 0234] Proxy Library RPC Generation * Split existing `InterfaceGenerator` into `InterfaceParser` and `InterfaceGenerator` * Moved InterfaceParser into `smartdevicelink/rpc_spec` * Rejoined `InterfaceParser` as `tools/rpc_spec` Git submodule from `smartdevicelink/rpc_spec` * Refactored `InterfaceGenerator` to use Parser from `tools/rpc_spec` Git submodule and be compatible with Python 3.5 * Replaced url SSH to HTTPS in submodule * refactoring according to comments in pull/202 * move common parsers to rpc_spec repo * change cmake argument * fix cmake argument list * fix cmake argument list * fix cmake argument list * small refactoring as requested in code review * adding *.xsd * adding *.xsd * xmlschema dependency added for python interface generator * align changes from parser rpc_spec * align changes from parser rpc_spec * align with rpc_spec * moved xmlschema python dependency installation to build script * installing all python requirements * Corrected requirements file * Additional dependencies for requirements * Correcting requirements * adding jsoncpp submodule * fixing unit tests * fixing unit tests * rename CodeFormatAndQuality * updated rpc_spec reference Co-authored-by: Aleksandr Mishchenko <amishchenko@luxoft.com> Co-authored-by: Kostiantyn Sologubov <ksologubov@luxoft.com>
* | Fix potential deadlock in application manager (#3215)Mykola Korniichuk (GitHub)2020-02-051-14/+18
| |
* | Merge pull request #3229 from smartdevicelink/fix/issue_3228theresalech2020-02-051-1/+1
|\ \ | | | | | | update license
| * | update licensefix/issue_3228theresalech2020-02-031-1/+1
| | |
* | | Feature/HMI Policy Table Update using vehicle modem (#3201)Ira Lytvynenko (GitHub)2020-02-0519-10/+86
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Send UPDATING state after receiving a successful SDL.PolicyUpdate response * Restart the timeout in case SDL received BC.OnSystemRequest with type PROPRIETARY or HTTP from HMI in UPDATING state * Fix UPDATE_NEEDED - UPDATING sequence in case of second app register * Add unit tests * fixup! Send UPDATING state after receiving a successful SDL.PolicyUpdate response * fixup! Restart the timeout in case SDL received BC.OnSystemRequest with type PROPRIETARY or HTTP from HMI in UPDATING state Co-authored-by: Yaroslav Mamykin (GitHub) <33784535+YarikMamykin@users.noreply.github.com>
* | Fix processing of VR only Perform Interaction response (#3122)Yaroslav Mamykin (GitHub)2020-01-313-65/+634
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix processing of VR only PI response 1. Added sending of UI_ClosePopUp request to HMI after VR.PerformInteraction response. 2. Added sending response with choice_id to mobile in case of successful VR.PerformInteraction response * Fix adapt existing unit tests * Add new unit tests * fixup! Fix processing of VR only PI response * fixup! Fix processing of VR only PI response * fixup! Add new unit tests * fixup! Fix processing of VR only PI response * fixup! Add new unit tests
* | Fix build witj external proprietary after update new jsoncpp lib (#3224)Yevhenii Dementieiev (GitHub)2020-01-303-5/+4
| |
* | Update jsoncpp library (#3155)Yevhenii Dementieiev (GitHub)2020-01-29235-16018/+553
| | | | | | | | | | | | | | | | * Delete old version of jsoncpp lib and add new like submodule, change deprecated interface for new. * Logs output without extra special symbols * fixup! Delete old version of jsoncpp lib and add new like submodule, change deprecated interface for new.
* | Stop app unregister timer after streaming session restarted (#3202)Mykola Korniichuk (GitHub)2020-01-292-27/+45
| | | | | | | | | | | | | | | | | | | | | | | | * Fix timeout for close application When application restarts streaming service, while close app timeout not expired, SDL will unregister application. * fix clear timer pool * Fix clear pool timer to be periodic * fixup! Fix clear pool timer to be periodic
* | Update malformed message's criterias according the documentation (#2516)Kostiantyn Grygoriev2020-01-282-18/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update malformed message's criterias according the documentation * Change UT according new rules * Unify logger's message * fixup! Update malformed message's criterias according the documentation * Fix build with ENABLE_LOG_OFF * fixup! Fix build with ENABLE_LOG_OFF * Add short condition for variable and fix build with Enable_log off * fixup! Add short condition for variable and fix build with Enable_log off Co-authored-by: Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> Co-authored-by: Yevhenii Dementieiev (GitHub) <57259850+ydementieiev@users.noreply.github.com>
* | Rework Uts and add synchronization to avoid race condition in transport ↵Serhii Niukalov (GitHub)2020-01-2423-183/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adapter (#3134) * Allow code compatibility with flag TELEMETRY_MONITOR On/Off Added missed virtual keyword for SetTelemetryMonitor method. Updated related interface and dependent mock classes * Add missed mock classes and update existing ones * Update TCP transport Adapter unit test logic Replaced mock object with real TCP transport adapter to be used with mock object to allow unit testing. * Rework TransportManagerDefault class to allow its unit testing 1) Replaced local variables(raw pointers) by class members 2) Reworked Transport Manager unit tests * Add missed logic when Connection failed to ThreadedSocketConnection::threadMain() Added missed "else" case to ThreadedSocketConnection::threadMain() when connection establishing is failed * Add the Terminate method to the connection interface. To avoid race condition and deadlock during destroying object of TcpServerOriginatedSocketConnection the Terminate method was added to the ThreadedSocketConnection. Race condition can happen between the call FindEstablishedConnection from TcpTransportAdapter::Store and Terminate from TransportAdapterImpl. In case when TcpServerOriginatedSocketConnection destroyed after FindEstablishedConnection called we will get deadlock , because in destructor of TcpServerOriginatedSocketConnection we call StopAndJoinThread(), but now we are in the same thread. Co-authored-by: Andriy Byzhynar (GitHub) <AByzhynar@luxoft.com>
* | SDL restores AddCommands in the order they were created (#2515)Anna Pipko (GitHub)2020-01-229-32/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * SDL restores AddCommands in the order they were created SDL generates and assigns internal_id for each AddCommand from mobile app and restore AddCommands by this internal_id * Fix message helper unit tests * Fix resume controller unit tests * Fix cmd_id in SendAddVRCommandToHMI * fixup! SDL restores AddCommands in the order they were created * Go to the next command if command id missing Co-authored-by: Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> Co-authored-by: Yevhenii Dementieiev (GitHub) <57259850+ydementieiev@users.noreply.github.com>
* | Fix UpdateDeviceList content (#2249)Yurii Postolov2020-01-225-48/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix UpdateDeviceList content fixed UpdateDeviceList contetnt for case, when device connected ower tcp protocol was unexpectedly disconnected and device has only one connection. * answering review * Fix redundant UpdateDeviceList issue Co-authored-by: Mykola Korniichuk (GitHub) <42380041+mkorniichuk@users.noreply.github.com>
* | Handle wrong message type from HMI was added (#2394)Pavel Zhdanov (GitHub)2020-01-213-10/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle wrong message type from HMI was added * Fixed ignored request from HMI in case of invalid data. utils::SharedPtr replaced with std::shared_ptr for ProcessMessageFromHMI and ProcessMessageFromMobile in rpc_handler. New parameter "report" in HandleWrongMessageType in order to get a proper error message in response. Redundant log message removed from sdl_activate_app_request. INVALID_DATA now will be sent as a response to HMI in case of wrong parameters in the request. Co-authored-by: Mykola Korniichuk (GitHub) <42380041+mkorniichuk@users.noreply.github.com>
* | Fix SDL app stream processing with non-streamable state. (#3151)Mykola Korniichuk (GitHub)2020-01-179-113/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix SDL app stream processing with non-streamable state. For determining whether an application is allowed to stream, SDL considered only HMI_Level. Now streaming state is also taken into account. Fix notifications for not streamable apps * Fix unit tests after rename function in new inplimentation * Minor fixes * const parameter for StartEndStreamTimer * Fix logging messages * end_stream_timer shanged to SingleShot * fix unit test for state_controller * fixup! Minor fixes * const parameter for StartEndStreamTimer * Fix logging messages * end_stream_timer shanged to SingleShot * fix unit test for state_controller * rename HMILevelAllowsStreaming -> HMIStateAllowsStreaming * fixup! Fix SDL app stream processing with non-streamable state. Co-authored-by: Yevhenii Dementieiev (GitHub) <57259850+ydementieiev@users.noreply.github.com>
| * Fix issue where building the logger would rebuild all other 3rd party librariesjacobkeeler2020-01-161-23/+34
|/
* Merge pull request #3145 from smartdevicelink/fix/SDL_crash_during_SetAppIconremote_atf_testingJacob Keeler2020-01-164-104/+262
|\ | | | | Fix/sdl crash during set app icon
| * Rework SetAppIcon requestfix/SDL_crash_during_SetAppIconAndriy Byzhynar2019-12-062-29/+34
| | | | | | | | Update SetAppIcon request according to the changes in file system
| * Rework file_systemAndriy Byzhynar2019-12-062-75/+228
| |
* | Fix sdl versioning for vehicle data (#3049)Yaroslav Mamykin (GitHub)2020-01-159-68/+201
| | | | | | * Fix versioning appliance for vehicle data
* | Fix misplaced OnDataVideoStreaming (#3154)Mykola Korniichuk (GitHub)2020-01-156-13/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix misplaced OnDataVideoStreaming OnDataVideoStreaming notification was sent for each application independently. Now one would be sent from application_manager with respect to service status * Fix OnDataStreamingNotification * rename parameters * fixup! rename parameters
* | Merge pull request #3203 from smartdevicelink/fix/BC.PolicyUpdate_twiceJackLivio2020-01-145-2/+87
|\ \ | | | | | | Fix BC.PolicyUpdate double sending
| * | fixup! Add new update_pending statusfix/BC.PolicyUpdate_twiceLitvinenkoIra2020-01-143-1/+7
| | |
| * | Add new update_pending statusLitvinenkoIra2019-11-295-2/+81
| | |
* | | Fix wrong success code for ReadDID request truncated data (#2370)Yurii Postolov2020-01-141-2/+4
| | | | | | | | | | | | | | | | | | * Fix wrong success code for ReadDID request truncated data * fixup! Fix wrong success code for ReadDID request truncated data
* | | fix_sdl_sends_query_apps_to_the_app_#995 (#2335)Yurii Postolov2020-01-135-11/+22
| | |
* | | Added test for double data cleanup (#3146)Serhii Niukalov (GitHub)2020-01-132-0/+30
| | |
* | | SDL forwards `OnButtonEvent` notification of `CUSTOM_BUTTON` to `BACKGROUND` ↵Valerii Malkov (GitHub)2020-01-103-8/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | App. (#2365) * Bugfix `SDL forwards OnButtonEvent notification` Bugfix `SDL forwards OnButtonEvent notification of CUSTOM_BUTTON to BACKGROUND App.` Issue number #967 * Check that SDL forwards OnButtonEvent notification of CUSTOM_BUTTON to BACKGROUND App * fixup! Bugfix `SDL forwards OnButtonEvent notification` Co-authored-by: Ira Lytvynenko (GitHub) <ILytvynenko@luxoft.com> Co-authored-by: Igor Gapchuk (GitHub) <41586842+IGapchuk@users.noreply.github.com>
* | | Fix crash in WebsocketSession on start. (#3191)Serhii Niukalov (GitHub)2020-01-102-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A crash occurs because we use an overload of boost::beast::websocket::stream::write without error_code. After the error occurs we add an error message to the logger and continue working. In SendMessage_UnpreparedConnection_WithoutFall test we use sleep because we can't ability to catch processed event. This issue is that LoopThreadDelegate requires a WebsocketSession to work. WebsocketSession init LoopThreadDelegate with 'this', so we have no way to simulate it without additional installers. In future, to avoid sleep, we can: Create a wrapper class for the socket, then provide the socket layout for the WebsocketSession in unit tests and wrap the following interfaces: async_read write down get_executor async_accept
* | | Fix increment of 'count_of_rejections_duplicate_name' counter (#3147)Yaroslav Mamykin (GitHub)2020-01-081-6/+13
| | | | | | | | | | | | | | | | | | In case of duplicated name of application SDL didn't increment 'count_of_rejections_duplicate_name' counter in policy db. Added incrementing of counter.
* | | Fix the SDL incorrect validates display_capabilities. (#3128)Igor Gapchuk (GitHub)2020-01-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | There is the issue when SDL incorrect validates display capabilities as a Smart Object. The route cause of the issue is the missed "alertIcon" parameter in mapping <string value, hmi_apis::Common_ImageFieldName::eType> . During validation, a Smart Object SDL can't find mandatory parameter and fail validation. As a result, SDL doesn't set display capabilities into the HMI capabilities entity.
* | | Fix undefined behavior after changing HMICapabilities smart object field (#3116)Andrii Kalinich (GitHub)2020-01-0715-230/+250
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix undefined behavior after SO cleanup After cleanup_data() call, delete is used to deallocate memory by pointer, however pointer still hold a value of address of deallocated memory. By that reason SO still have an ability to access that data what might cause UB including core crash in the random places. This function has been updated to set pointers to NULL as well as smart object type to prevent accident access to deallocated memory. * fixup! Fix undefined behavior after SO cleanup * Fix CSmartSchema corruption while copying The issue is that HMICapabilities class is storing different capability fields by raw pointer. In some cases when one thread is trying to copy smart object by pointer, another thread may try to set the same field and destroys a previous one. This may cause a half-copied smart object instance, like smart object with the schema pointing to already destroyed schema item. When such smart object is destroyed, we may see a core crash or unexpected SDL behavior. To avoid such issues, raw pointers were raplced with shared pointers, set by swap() operation. This provide a guarantee that object will not be destroyed while copying by some thread.
* | Merge pull request #3143 from smartdevicelink/masterfix/crash_in_appmanagerJackLivio2019-11-2524-137/+339
|\ \ | |/ |/| Update develop with hotfix 6.0.1
| * Merge pull request #3137 from smartdevicelink/release/6.0.16.0.1webfix/cppJackLivio2019-11-2524-137/+339
| |\ |/ / | | Hotfix Release 6.0.1
| * Merge pull request #3132 from smartdevicelink/hotfix/hybrid_app_preference_bugrelease/6.0.1Jacob Keeler2019-11-2210-87/+186
| |\ | | | | | | Fix application of hybrid app preference parameter for cloud applications
| | * Fix unit testsjacobkeeler2019-11-221-0/+22
| | |
| | * Fix stylejacobkeeler2019-11-221-4/+4
| | |