Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9479] iOS: ASIHTTPRequest needs to be updated to v1.8.1-61 2011-09-19 urgently

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-15T16:58:43.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 API, Release 2.0.3
ComponentsiOS
LabelsSupportTeam, api, module_imageview, qe-testadded
Reporterkosso
AssigneeBlain Hamon
Created2012-06-11T07:03:47.000+0000
Updated2012-08-13T12:56:17.000+0000

Description

A couple of us have started to see a fatal error creep in to performing some secure HTTP requests. See : http://developer.appcelerator.com/question/138147/createhttpclient---ssl-problem-on-some-api-call The error message "A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate, clock set to wrong date)" has also been mentioned in a recent commit to the ASIHTTPRequest tree : See : https://github.com/pokeb/asi-http-request/pull/325 The version used by Titanium is : v1.8.1-8 2011-06-05 The latest version from ASI is : v1.8.1-61 2011-09-19 (as stated in the ASIHTTPRequest.m file) Please, this needs to be updated uregntly. The bug appears to have crept in via a recent iOS update and can only get worse if not fixed urgently. Especially given the impending WWDC.

Comments

  1. kosso 2012-06-15

    Just a note to confirm that the update to ASI just committed to master has fixed the error I was seeing in my app which connects to Google's OAuth2.0 APIs. Thanks everyone!
  2. Joe Maffia 2012-06-18

    Mhhh... still not seems to work properly. I'm testing with the Google shortener API, the GET request goes through fine but the POST return an empty error message.
  3. Vishal Duggal 2012-06-19

    PR https://github.com/appcelerator/titanium_mobile/pull/2421 merged for 2_0_X
  4. Eric Merriman 2012-06-21

    Verified fail case with 2.0.2GA, verified fixed with SDK 2.1.0.v20120619172256 on iOS 5.0.1 using the following (adapted form TIMOB-7470):
       var win = Ti.UI.createWindow();
       
       var imageView = Titanium.UI.createImageView({
       image: 'https://vmdev2.mfoundry.com/daffy/res/tmb/en/app/branding/tablet/fiLogo.png',
       top:50,
       left:10,
       height:100,
       width:200
       });
       
       win.add(imageView);
       win.open();
       
  5. Satyam Sekhri 2012-08-07

    Verified on 2.0.3.v20120806151610 with the test code in the comment from Eric

JSON Source