{ "id": "133239", "key": "AC-796", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-07-17T06:45:57.000+0000", "created": "2014-07-16T01:56:41.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updated": "2016-03-08T07:37:04.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "On android when using Titanium.Network.HTTPClient to GET json data and other files from a website, the ondatastream callback sometimes returns values less than zero.\r\n\r\nWhen I get multiple data streams for the one request they get progressively lower values.\r\n\r\nFor example, these are the progress values from a single GET request for some json:\r\n{code}\r\n[DEBUG] : -4096 \r\n[DEBUG] : -7734 \r\n[DEBUG] : -11830 \r\n[DEBUG] : -15926 \r\n[DEBUG] : -20022 \r\n[DEBUG] : -22070 \r\n[DEBUG] : -23478 \r\n[DEBUG] : -27574 \r\n[DEBUG] : -31670 \r\n[DEBUG] : -34950\r\n{code}", "attachment": [], "flagged": false, "summary": "HTTPClient ondatastream returns negative progress values", "creator": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "environment": "Titanium Studio, build: 3.2.3.201404181442\r\nCLI version 3.2.3\r\nTitanium SDK version 3.2.3.GA\r\nAndroid 4.x", "comment": { "comments": [ { "id": "314328", "author": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "body": "Possibly related: TIMOB-14613", "updateAuthor": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "created": "2014-07-16T01:59:58.000+0000", "updated": "2014-07-16T01:59:58.000+0000" }, { "id": "314590", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-17T06:45:57.000+0000", "updated": "2014-07-17T06:45:57.000+0000" }, { "id": "314742", "author": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "body": "It doesn't matter to me whether these are duplicate or not but they seem like different issues as the different platforms consistently give different errors:\r\n\r\niOS gives values above 1 and android gives values below 0.\r\n\r\nAlthough they affect the same thing the symptoms are quite different.", "updateAuthor": { "name": "rooby", "key": "rooby", "displayName": "Reuben Turk", "active": true, "timeZone": "Australia/Sydney" }, "created": "2014-07-18T00:08:16.000+0000", "updated": "2014-07-18T00:08:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }