{ "id": "131120", "key": "TIMOB-17057", "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": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-05T20:07:22.000+0000", "created": "2014-06-01T12:59:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_network", "qe-testadded", "regression" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38041", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "130975", "key": "TIMOB-17036", "fields": { "summary": "iOS: Titanium.Network.HTTPClient must refuse subsequent calls to open", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-04T09:43:47.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": "I use the HTTPClient to retrieve new tweets.\r\n\r\nSince 3.3.0, it seems that the responseText prepends the previous value to the new one, so my JSON parser crashes the app.\r\n\r\nAt the first launch, here's what I get:\r\nbq. {\"tweets\":[{\"tweet\":{\"text\":\"Our friends @felttip_band have a new single and it's a great one again ! Hooked by the whistling https://t.co/6Wt1vkVhEs\",\"created_time\":\"20140507112956\",\"guid\":\"463973998452170752\"}}]}\r\n\r\nBut if I try to refresh, here's what I get:\r\nbq. {\"tweets\":[{\"tweet\":{\"text\":\"Our friends @felttip_band have a new single and it's a great one again ! Hooked by the whistling https://t.co/6Wt1vkVhEs\",\"created_time\":\"20140507112956\",\"guid\":\"463973998452170752\"}}]}{\"tweets\":[]}\r\n\r\nAs you can see, the correct response (empty array) is at the end, but the previous value is still there...\r\n\r\nThis does not happen with SDK 3.2.3.", "attachment": [], "flagged": false, "summary": "iOS: HTTPClient - responseText is not cleared between two requests", "creator": { "name": "jdanthinne", "key": "jdanthinne", "displayName": "Jérôme Danthinne", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jdanthinne", "key": "jdanthinne", "displayName": "Jérôme Danthinne", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Appcelerator Studio, build: 3.3.1.201405301123 \r\nSDK build: 3.3.0.Beta \r\nCLI: 3.3.0-beta\r\nXcode: 5.1.1\r\nDevices: iphone 5 (7.1.1)", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "307173", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you have a simple sample that demonstrates the problem we can reuse to make sure we see the same behavior?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-02T16:18:48.000+0000", "updated": "2014-06-02T16:18:48.000+0000" }, { "id": "307217", "author": { "name": "jdanthinne", "key": "jdanthinne", "displayName": "Jérôme Danthinne", "active": true, "timeZone": "Europe/Berlin" }, "body": "A simple sample, not really, but I can send my app code if needed…", "updateAuthor": { "name": "jdanthinne", "key": "jdanthinne", "displayName": "Jérôme Danthinne", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-02T18:55:42.000+0000", "updated": "2014-06-02T18:55:50.000+0000" }, { "id": "307693", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5775\r\n3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5776", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-05T17:56:32.000+0000", "updated": "2014-06-05T18:02:03.000+0000" }, { "id": "308228", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The response text gets cleared between calls and does not append to the previous response.\r\nVerified on:\r\n|| Component || Version ||\r\n| Appcelerator Studio | 3.3.0.201406061445 |\r\n| Titanium SDK | 3.3.0.RC |\r\n| Node | 0.10.28 |\r\n| acs | 1.0.14 |\r\n| alloy | 1.4.0-beta2 |\r\n| npm | 1.4.9 | \r\n| CLI | 3.3.0-beta3 |\r\n| Titanium-code-processor | 1.1.1 |\r\n| OS | OSX 10.9.2 |\r\n| Device | iPhone 5S (iOS 7.1) |", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-10T08:44:42.000+0000", "updated": "2014-06-10T08:44:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }