smartdevicelink / sdl_core

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

SDL response with "GENERIC_ERROR" in case request ResetGlobalProperties ("USER_LOCATION") #3668

Closed VjKlepikov closed 3 years ago

VjKlepikov commented 3 years ago

Bug Report

SDL response with "GENERIC_ERROR" in case request ResetGlobalProperties ("USER_LOCATION")

Precondition:

1. Start SDL and HMI.
2. Connect mobile device via any transport.
3. Mobile application is registered and activated.
4. Mobile application successfully sends SetGlobalProperties with userLocation parameter
 SetGlobalProperties { "userLocation":{"grid": {"col":2, "level":2,"row":2, "colspan":1,"levelspan":1, "rowspan":1 }
Reproduction Steps
  1. Send ResetGlobalProperties with "USER_LOCATION" App→SDL: ResetGlobalProperties (USER_LOCATION)
Expected Behavior

SDL sends RC.SetGlobalProperties request with default driver seat location properties to HMI SDL→HMI: RC.SetGlobalProperties ( { "userLocation":{"grid":{"col":0, "level":0,"row":0, "colspan":1,"levelspan":1, "rowspan":1 }}} HMI→SDL: RC.SetGlobalProperties ( SUCCESS ) SDL→App: ResetGlobalProperties( "success":true, resultCode":"SUCCESS" )

Observed Behavior

SDL→App: ResetGlobalProperties( "success":false , "resultCode":"GENERIC_ERROR")

SDL_logs:

SDL_Log.zip

OS & Version Information
VjKlepikov commented 3 years ago

@yang1070 Could you please confirm the expected result: SDL sends RC.SetGlobalProperties request with default driver seat location properties to HMI RC.SetGlobalProperties ( { "userLocation":{"grid":{"col":0, "level":0,"row":0, "colspan":1,"levelspan":1, "rowspan":1 }}}

yang1070 commented 3 years ago

@VjKlepikov According to the proposal https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0221-multiple-modules.md The default userLocation should be DRIVER's seat to ensure backwards compatibility. Therefore, grid":{"col":0, "level":0,"row":0, "colspan":1,"levelspan":1, "rowspan":1 }} is correct

ShobhitAd commented 3 years ago

Closed via https://github.com/smartdevicelink/sdl_core/pull/3741