sdl_ios icon indicating copy to clipboard operation
sdl_ios copied to clipboard

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

Open joeljfischer opened this issue 4 years ago • 0 comments

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

joeljfischer avatar Apr 12 '21 19:04 joeljfischer