smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 245 forks source link

SDL removes the current "consumer_friendly_messages" section in Local PT in case the Updated PT omits "consumer_friendly_messages" section #3846

Closed VjKlepikov closed 2 years ago

VjKlepikov commented 2 years ago

Bug Report

SDL removes the current "consumer_friendly_messages" section in Local PT in case the Updated PT omits "consumer_friendly_messages" section

Reproduction Steps
  1. Make sure SDL is built with HTTP flow
  2. Register new application => PTU is triggered
  3. PTU omits "consumer_friendly_messages" section
Expected Behavior

SDL maintains the current "consumer_friendly_messages" section in Local PT

Observed Behavior

SDL removes the current "consumer_friendly_messages" section in Local PT in case the Updated PT omits "consumer_friendly_messages" section

OS & Version Information
Test Case, Sample Code, and / or Example App
Logs: Logs.zip
VjKlepikov commented 2 years ago

Please notice this is a regression issue that became reproducible after merge of #3842 @theresalech Can you please advise if the Livio team is planning on submitting a PR to fix?

theresalech commented 2 years ago

@VjKlepikov our team will review the issue and advise.

jacobkeeler commented 2 years ago

@VjKlepikov can you confirm if this issue only occurs in HTTP mode?

jacobkeeler commented 2 years ago

After testing, it appears that this issue is reproducible in master if OnDriverDistraction(DD_ON) is sent prior to registering the app. It seems likely that the issue lies in this section of code

jacobkeeler commented 2 years ago

closed via #3852