Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 7.1.0 #3669

Merged
merged 109 commits into from
Apr 14, 2021
Merged

Release 7.1.0 #3669

merged 109 commits into from
Apr 14, 2021

Conversation

Jack-Byrne
Copy link
Collaborator

@Jack-Byrne Jack-Byrne commented Mar 18, 2021

This PR is ready for review. Reported issues and pull requests will be prioritized for development and review.

Risk

This PR makes minor API changes.

Features

Bug Fixes

CLA

AKalinich-Luxoft and others added 30 commits December 22, 2017 13:41
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
This prevents SDL from starting HB session tracking every
time SDL receives HB request from mobile.
…artbeat_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
* 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>
…at_starting

Fix session heartbeat starting
* Fix policy validation of OnVehicleData message

* Fix unit tests

Co-authored-by: Mykola Korniichuk <mkorniichuk@luxoft.com>
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`)
…dly_messages

Re-add messages field in policy table json
* Add OnWayPointChange handling for NAVIGATION app services

* Only send OnWayPointChange to mobile from active waypoints provider
…_omitted

Handle omitted parameter permissions properly in OnVehicleData notification
…on_at_registration

Bind protocol version when app registers
…it_tests

Fix failing unit tests in hmi_notifications_test
…fields

Check for revoked apps when reading mandatory policy fields
…icies

Fix variable usage in OnVehicleDataNotification
* Fix build failure with ENABLE_LOG=OFF

Also fix unused variable warnings caused by the same configuration
…Cs (#3587)

* Fix success=false after UNSUPPORTED_RESOURCE response for multiple RPCs

Fixes issue for PerformInteraction, Alert, SubtleAlert, AlertManeuver, and PerformAudioPassThru
* 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>
Jack-Byrne and others added 24 commits February 26, 2021 11:45
* initialize AppPermissions.isSDLAllowed in constructor

* Update src/components/policy/policy_external/include/policy/policy_types.h

Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>

* apply to regular policies

Co-authored-by: Shobhit Adlakha <ShobhitAd@users.noreply.github.com>
Removed msg_params section forwarding for case
when response was not successful.
* Fix setting encrypted block size when cipher is unknown

* Add missing cipher to list
* Update boost installation to 1.72.0

* Fix boost installation process

Properly set boost directories when the library is found, also run clean step before installation to prevent lingering old versions of boost
* Update boost installation to 1.72.0

* Fix boost installation process

Properly set boost directories when the library is found, also run clean step before installation to prevent lingering old versions of boost

* Fix websocket implementation

* Update Configurations for openssl 1.1.1

* Update src/components/security_manager/src/crypto_manager_impl.cc

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>

Co-authored-by: jacobkeeler <jacob.keeler@livioradio.com>
* Compile ssl version check

* Fix comparison

* Remove redundant tls 1.3 check
Co-authored-by: collin <collin+i@collinmcqueen.com>
…est with invalid data (#3647)

* Fix NACK sending for Start RPC service with invalid data in bson payload.
Fix memory leak with session after Start RPC service NACK.
Fix OnServiceUpdate sending after Start RPC service with invalid data in bson payload for protected mode.
Fix NACK sending for Start any service with non-existent session id.

* fixup! Fix NACK sending for Start RPC service with invalid data in bson payload. Fix memory leak with session after Start RPC service NACK. Fix OnServiceUpdate sending after Start RPC service with invalid data in bson payload for protected mode. Fix NACK sending for Start any service with non-existent session id.

* fixup! fixup! Fix NACK sending for Start RPC service with invalid data in bson payload. Fix memory leak with session after Start RPC service NACK. Fix OnServiceUpdate sending after Start RPC service with invalid data in bson payload for protected mode. Fix NACK sending for Start any service with non-existent session id.

Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com>
* Configure security level in ini file

Co-authored-by: Jacob Keeler <jacob.keeler@livioradio.com>
* Add status check for bt scan

* Create separate thread to handle the paired device and hci inquiries

* Style fix

* Initialize inquiry thread in constructor and add thread start check

* Remove scan for unpaired devices

* Remove inquiry thread

* Add timeout, remove found_devices_with_sdl_, fix conflicts

* Prevent automatic cloud connections

* Fix bluetooth thread issues

* Fix style

* Remove new lines

* Fix threading issues

* Prevent deadlock on shutdown

* Rename CV Lock

* Style

Co-authored-by: JackLivio <jack@livio.io>
* Check waypoint subscription size in resumption

* Update modifiers
@Jack-Byrne Jack-Byrne merged commit 0a18698 into master Apr 14, 2021
@Jack-Byrne Jack-Byrne deleted the release/7.1.0-RC1 branch April 14, 2021 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.