[TIMOB-18579] iOS: Titanium.Network.HTTPClient setTlsVersion( tlsVersion ) doesn't handle invalid tlsVersion values.
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2015-02-17T16:58:58.000+0000 |
Affected Version/s | Release 4.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-4.0.0 |
Reporter | Khushbu Agrawal |
Assignee | Ingo Muschenetz |
Created | 2015-02-17T07:37:27.000+0000 |
Updated | 2017-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
File | Date | Size |
app.js | 2015-02-17T07:37:27.000+0000 | 876 |
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.
Closing ticket as the issue will not fix.