Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3257] iOS: Inconsistent httpClient behavior between Ti SDK 1.5 and 1.6

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-09-04T13:31:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBrandon Xavier
AssigneeNeeraj Gupta
Created2011-04-15T03:40:37.000+0000
Updated2017-03-09T22:17:46.000+0000

Description

Issue Description: My code accesses the Google Docs List API to export online Google Document contents to a webview in the app. It works perfectly in TiDev 1.5 but does not work the same with 1.6 even with the same code base.

Steps to reproduce:

  1. Copy and paste the code from http://pastie.org/1626702">http://pastie.org/1626702 to your app.js. You can start with a new project in TiDev and just overwrite the existing app.js content with this.

  2. Create a new file called "parse.js" and paste the code from here http://pastie.org/1626711">http://pastie.org/1626711.

  3. If you have a Google account, login using your desktop and create a few dummy documents (these must be of 'Document' type).

  4. The code once copied and pasted is ready to go, so build the code in Titanium Developer using SDK v1.5 and login to your Google account through the app. Once logged in, click on a document in the list to see the document display in the webview.

  5. Repeat step 4 but this time use SDK v1.6. You should see that the Google page that comes up now is not the right one.

Expected behavior: The selected document's contents should appear in the webview (see attached screen-shot expected.png)

Actual behavior: The Google sign up page is displayed instead in the webview, which usually indicates that an auth token was not received (see attached screen-shot actual.png)

Target and Development platform (Titanium Mobile 1.6 on Mac OSX Snow Leopard 64bit for iOS)

Logs and errors: The app does not generate any errors. Code wise, it seems to be fine.

Initial analysis & suspicions: I have a suspicion that httpClient in 1.6 seems to operate rather differently than in 1.5 perhaps when it comes to the sequence of asynchronous events.

Attachments

FileDateSize
actual.png2011-04-15T03:40:38.000+0000138535
expected.png2011-04-15T03:40:37.000+0000160067

Comments

  1. Brandon Xavier 2011-04-15

    Issue resolved. Please remove this ticket.

  2. Junaid Younus 2012-09-04

    Tested on the iOS simulator using TiSDK 2.2.0v20120904101713, unable to reproduce the issue. Ticket marked as resolved.
  3. Lee Morris 2017-03-09

    Closing ticket as the issue cannot be reproduced.

JSON Source