Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20061

TLS Version set in Android ignored on Publish

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.2.0, Release 5.1.2
    • Component/s: Android
    • Labels:
    • Environment:

      Accelerator Studio
      Mac OSX EL Capitan

    • Sprint:
      2015 Sprint 24 SDK

      Description

      Using the latest SDK and studio, using Set TLS version on android functions as expected when built directly to the device, however once published to the store, the setting is ignored and android default behaviour kicks in.

      On android versions 5 and above TLS 1.2 is used correctly both locally and published.
      On android versions below 5 (4.4.4 and 4.1.0 confirmed) TLS 1.1 or TLS 1.2 is used correctly locally but connections are refused once published (SSL handshake fails)

      We have TLS 1.0 disabled on our production environment for security reasons and as a consequence of the setting not taking affect, all android devices cannot connect to the server.

      *Repro Steps
      Create a service endpoint with TLS 1.1 and TLS 1.2 only enabled.
      Create HTTP client initialising TLS version

      // Some comments here
      // create new HTTPClient
      		var httpRegister = Titanium.Network.createHTTPClient({
      			tlsVersion : Ti.Network.TLS_VERSION_1_1
      		});
      

      Set target and min SDKS

       <uses-sdk android:minSdkVersion="16"/>
       <uses-sdk android:targetSdkVersion="23"/>
      

      Add connection to server endpoint.
      Compile using Latest SDK and deploy to android 4.1 or 4.4.4 device (simulator also behaves correctly)
      Run application and hit endpoint.-> works

      Publish application to play store as beta or live
      Run application and hit endpoint -> call fails

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              anvil_martin Martin Williamson
              Reviewer:
              Ashraf Abu (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20728
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code