[TIMOB-3257] iOS: Inconsistent httpClient behavior between Ti SDK 1.5 and 1.6
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-09-04T13:31:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Brandon Xavier |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:40:37.000+0000 |
Updated | 2017-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:
-
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.
-
Create a new file called "parse.js" and paste the code from here http://pastie.org/1626711">http://pastie.org/1626711.
-
If you have a Google account, login using your desktop and create a few dummy documents (these must be of 'Document' type).
-
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.
-
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
File | Date | Size |
---|---|---|
actual.png | 2011-04-15T03:40:38.000+0000 | 138535 |
expected.png | 2011-04-15T03:40:37.000+0000 | 160067 |
Issue resolved. Please remove this ticket.
Tested on the iOS simulator using TiSDK 2.2.0v20120904101713, unable to reproduce the issue. Ticket marked as resolved.
Closing ticket as the issue cannot be reproduced.