{ "id": "63889", "key": "TIMOB-3257", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-09-04T13:31:21.000+0000", "created": "2011-04-15T03:40:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20530", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:17:46.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

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

\n

Steps to reproduce:

\n
    \n
  1. \n

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

    \n
  2. \n
  3. \n

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

    \n
  4. \n
  5. \n

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

    \n
  6. \n
  7. \n

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

    \n
  8. \n
  9. \n

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

    \n
  10. \n
\n

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

\n

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

\n

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

\n

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

\n

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

{html}", "attachment": [ { "id": "18290", "filename": "actual.png", "author": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:38.000+0000", "size": 138535, "mimeType": "image/png" }, { "id": "18289", "filename": "expected.png", "author": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:37.000+0000", "size": 160067, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Inconsistent httpClient behavior between Ti SDK 1.5 and 1.6", "creator": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130401", "author": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Issue resolved. Please remove this ticket.

{html}", "updateAuthor": { "name": "brandonxavier", "key": "brandonxavier", "displayName": "Brandon Xavier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:38.000+0000", "updated": "2011-04-15T03:40:38.000+0000" }, { "id": "217491", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on the iOS simulator using TiSDK 2.2.0v20120904101713, unable to reproduce the issue. Ticket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-09-04T13:31:21.000+0000", "updated": "2012-09-04T13:31:21.000+0000" }, { "id": "410798", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:17:46.000+0000", "updated": "2017-03-09T22:17:46.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }