Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18579] iOS: Titanium.Network.HTTPClient setTlsVersion( tlsVersion ) doesn't handle invalid tlsVersion values.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2015-02-17T16:58:58.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-4.0.0
ReporterKhushbu Agrawal
AssigneeIngo Muschenetz
Created2015-02-17T07:37:27.000+0000
Updated2017-03-20T17:14:13.000+0000

Description

Description: This is not a regression. setTlsVersion( tlsVersion ) method doesn't handle invalid values. It should make a check for invalid value rather than setting any given value. STEPS TO REPRODUCE: 1.Create a classic app and replace it app.js with the attached one. 2. Run the app on device and check the console message. ACTUAL RESULT: 2. It sets the value of Tls to '400' which is an invalid value. EXPECTED RESULT: 2. It should give error message to user for setting invalid value.

Attachments

FileDateSize
app.js2015-02-17T07:37:27.000+0000876

Comments

  1. Vishal Duggal 2015-02-17

    Since deprecating the ASI library and moving to the NSURLRequest framework, iOS has lost the ability to set a TLS Version for the request. We can not do that without using private API's. Essentially setTlsVersion() is a no-op on iOS. The TLS Version used is the one negotiated during the SSL handshake. Marking this as Won't Fix.
  2. Lee Morris 2017-03-20

    Closing ticket as the issue will not fix.

JSON Source