sdl_core
sdl_core copied to clipboard
SDL does not forward an error message to the app during processing CreateInteractionChoiceSet RPC
Bug Report
SDL does not forward an error message to the app during processing CreateInteractionChoiceSet RPC
Reproduction Steps
- SDL and HMI are started
- App is registered
- On HMI go to "Setting -> RPC Control -> SyncProxyTester -> CreateInteractionChoiceSet"
- Set response resultCode to
REJECTEDand click "Save" button - App sends RPC
CreateInteractionChoiceSetrequest withvrCommands - HMI responds with error code "REJECTED" and error message
Expected Behavior
SDL sends CreateInteractionChoiceSet(resultCode = "REJECTED", info = <message received from HMI>) response to the mobile app
Observed Behavior
SDL sends CreateInteractionChoiceSet response without info message to the mobile app
MOB->SDL [15-02-2022 12:53:39,993] [rpcFunction: CreateInteractionChoiceSet, sessionId: 1, version: 2, frameType: 1, encryption: false, serviceType: 7, frameInfo: 0, messageId: 5, binaryDataSize: 0] : {"interactionChoiceSetID":1001,"choiceSet":[{"image":{"imageType":"DYNAMIC","value":"icon.png"},"menuName":"Choice1001","vrCommands":["Choice1001"],"choiceID":1001}]}
SDL->HMI [15-02-2022 12:53:39,996] {"id":28,"jsonrpc":"2.0","method":"VR.AddCommand","params":{"appID":1962457943,"cmdID":1001,"grammarID":1448575975,"type":"Choice","vrCommands":["Choice1001"]}}
HMI->SDL [15-02-2022 12:53:39,996] {"jsonrpc":"2.0","error":{"data":{"method":"VR.AddCommand"},"code":4,"message":"Error message"},"id":28}
SDL->MOB [15-02-2022 12:53:40,004] [rpcFunction: CreateInteractionChoiceSet, sessionId: 1, version: 2, frameType: 1, encryption: false, serviceType: 7, frameInfo: 0, messageId: 8, binaryDataSize: 0] : {"success":false,"resultCode":"REJECTED"}
OS & Version Information
- OS/Version: Ubuntu 18.04
- SDL Core Version: https://github.com/smartdevicelink/sdl_core/tree/develop (b74c738)
- Testing Against: Web HMI: https://github.com/smartdevicelink/sdl_hmi/tree/develop, SPT: 20210729-Android
Logs
Please notice this is a non-regression issue. It's also reproduced on 8.0