Skip to content

When the RPC service is encrypted, we should wait for encryption to set up before setting up the managers #1969

@joeljfischer

Description

@joeljfischer
Contributor

Bug Report

When connecting to an encrypted system with PutFile encrypted, the library never successfully connects because the PutFile is never sent and the handler is never called. This is because SDLProtocol blocks the sending of any RPCs that are encrypted but encryption is not set up.

We should setup the Lifecycle manager to have a new waiting for encryption setup state between Connected and Registered, or otherwise before SettingUpManagers.

Reproduction Steps
  1. Setup Core to require encryption for PutFile
  2. Setup iOS to connect to Core over encrypted connections
  3. Connect the iOS app to Core
Expected Behavior

The app icon successfully sends

Observed Behavior

The app never finishes connecting and is not usable.

OS & Version Information
  • iOS Version: n/a
  • SDL iOS Version: v7.1-develop
  • Testing Against: Core v7.1-develop
Test Case, Sample Code, and / or Example App

n/a

Activity

added
bugA defect in the library
manager-lifecycleRelating to the manager layer - lifecycle manager
protocolRelating to the protocol layer
on Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA defect in the librarymanager-lifecycleRelating to the manager layer - lifecycle managerprotocolRelating to the protocol layer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @joeljfischer

        Issue actions

          When the RPC service is encrypted, we should wait for encryption to set up before setting up the managers · Issue #1969 · smartdevicelink/sdl_ios