Skip to content

Core does not respond to StartService with encrypted=true if PTU timed out #3440

@jacobkeeler

Description

@jacobkeeler

Bug Report

If the PTU retry sequence fails when attempting to get a certificate for establishing a secured connection, Core will not respond to the original StartService or inform the HMI that the process failed.

Reproduction Steps
  1. Build Core with EXTENDED_POLICY=EXTERNAL_PROPRIETARY
  2. Set ForceProtectedService = 0x0A, 0x0B in smartDeviceLink.ini
  3. Set the following values in the preloaded PT:
            "timeout_after_x_seconds": 10,
            "seconds_between_retries": [
                1
            ],
...
            "endpoints": {
                "0x07": {
                    "default": [
                        "http://invalid.url/api/1/policies/proprietary"
                    ]
                },
  1. Start Core
  2. Connect an app and attempt to establish a secure video service
  3. Wait for the PTU sequence to time out
Expected Behavior

Core responds to the StartService with StartServiceNAK and sends a service status update to the HMI with REQUEST_REJECTED

Observed Behavior

Core does not send a StartServiceNAK or service status update, REQUEST_RECEIVED update hangs indefinitely

OS & Version Information
  • OS/Version: Ubuntu 18.04
  • SDL Core Version: develop
  • Testing Against: sdl_test_suite for Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions