{ "id": "150864", "key": "TIMOB-19916", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-02T01:34:12.000+0000", "created": "2015-08-31T22:12:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Community", "httpclient", "module_network", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-02-02T01:34:45.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "We have comet server which we receive updates. iOS version works but Android version responseText is empty which must not be the case. In iOS version ondatastream method receives ping items but Android does not receive.\r\n\r\nHow to reproduce issue:\r\nThere are two version app.js (long version) \r\napp_simplified.js (short version/ no need to send news to test it)\r\nuse app.js code as attached.\r\nUse iOS simulator then test the service by using following url:\r\n[send news update|http://destekmenkul.com/mobil/insertcommenttest.php]\r\nfill pass field:\r\npass: murat123\r\n\r\nresult is shown in the terminal : \"its working\" means ondatastream works. We sended a news and it cought in ondatastream method but Android gives runtime error because responseText is empty.\r\n\r\n[INFO] : TypeId:TestType\r\n[INFO] : notification:{\"py/object\":\"NewsLib.DefaultNewsItem.DefaultNewsItem\",\"readCount\":0,\"uid\":\"20150930141554\",\"source\":\"TestSource\",\"symbol\":\"EURUSD\",\"dateTime\":{\"py/repr\":\"datetime/datetime.datetime(2015, 9, 30, 14, 15, 54, 430528)\"},\"thumbnailID\":\"http://www.forexsirketleri.org/uploads/destekfx-inceleme.png\",\"header\":\"My Header\",\"typeId\":\"TestType\",\"keywords\":[\"\",\"usd\",\"abd\",\"eurusd\",\"eur\",\"euro b??lgesi\"],\"pretext\":\"pretext\",\"isRefresh\":false,\"isDelete\":false,\"stocks\":\"\",\"timestamp\":1446207300000}\r\n[INFO] : its working!!!\r\n\r\nNow try same step with Android simulator there is no info print! ondatastream responseText is empty!\r\n\r\nI attached our comet service document for further explanation of comet service. \r\n\r\napp_simplified.js:\r\nJust run the code and see the response.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [ { "id": "56837", "filename": "how_to_test_send_news_manually.png", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-29T16:21:01.000+0000", "size": 155530, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: HTTPClient ondatastream method responseText is empty for Android", "creator": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Host OS: Mac OS X\r\nOS Version: 10.10.5\r\nOS Arch: x86_64\r\n\r\nJRE Version: 1.7.0_80\r\nJRE Vendor: Oracle Corporation\r\nJRE Home: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre\r\n\r\nAppcelerator Studio Version: 4.1.1.201507141126\r\nInstall Directory: file:/Applications/Appcelerator Studio/\r\nWorkspace Directory: file:/Users/ceyhun/Documents/Appcelerator_Studio_Workspace/\r\nVM Arguments: -Xms128m\r\n-Xmx1024m\r\n-XX:MaxPermSize=256m\r\n-Xverify:none\r\n-Declipse.p2.unsignedPolicy=allow\r\n-Declipse.log.size.max=10000\r\n-Declipse.log.backup.max=5\r\n-Dtitanium.moduleListUrl=http://preview.appcelerator.com/360/modules.json\r\n-Dfile.encoding=UTF-8\r\n-Xdock:icon=../Resources/titanium.icns\r\n-XstartOnFirstThread\r\n-Dorg.eclipse.swt.internal.carbon.smallFonts\r\n-Djava.class.path=/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar\r\n\r\nLanguage: en_US\r\n\r\nTest Service Module Required version: 7732.313. Is Installed: true\r\nTest Service Host/URL: http://appctest-2.appcelerator.com/concerto/touchtest\r\nTest Service Server Endpoint URL: http://cloudtest.360.appcelerator.com/concerto\r\nACS App URL: null\r\nACS Login URL: null\r\n", "closedSprints": [ { "id": 536, "state": "closed", "name": "2015 Sprint 25 SDK", "startDate": "2015-12-05T01:30:40.415Z", "endDate": "2015-12-19T01:30:00.000Z", "completeDate": "2015-12-29T03:19:42.127Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "363580", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Do you have any update for this issue?", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-11T08:54:23.000+0000", "updated": "2015-09-11T08:54:23.000+0000" }, { "id": "363950", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello, we really waiting for a feedback. Could you at least respond whether this issue fixable or not?\r\nThank you. ", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-15T11:29:54.000+0000", "updated": "2015-09-15T11:29:54.000+0000" }, { "id": "364033", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you try Running the below code in SDK 4.1.1.GA. It's working for me in Android. remember \"ondatastream\" must be called before \"open\".\r\n\r\n{code}\r\nvar url = \"http://www.7-zip.org/a/7za920.zip\";\r\nvar xhr = Ti.Network.createHTTPClient({\r\n\tonload : function(e) {\r\n\t\tTi.API.info('success');\r\n\t\tTi.API.info('done');\r\n\t},\r\n\tondatastream : function(e) {\r\n\t\tTi.API.info(e.progress);\r\n\t},\r\n\tonerror : function(e) {\r\n\t\tTi.API.info('error');\r\n\t},\r\n\ttimeout : 5000 \r\n});\r\nxhr.open(\"GET\", url);\r\nxhr.send();\r\n{code}\r\n", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-09-16T04:57:06.000+0000", "updated": "2015-09-16T05:02:18.000+0000" }, { "id": "364058", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hi Amimul, \r\nI have used the same method with similar way but Android version did not worked. I have send my sample code to your email address. It has sensitive login credentials so I can not share here. We are really waiting whether it can fixable or not.\r\nThank you.\r\nEdit: I attached the source code and documents", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-16T08:55:59.000+0000", "updated": "2015-09-29T16:24:48.000+0000" }, { "id": "364180", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hi,\r\nAre there any progress so far?", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-17T10:17:00.000+0000", "updated": "2015-09-17T10:17:00.000+0000" }, { "id": "365076", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello,\r\nwe are waiting response.\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-28T09:09:23.000+0000", "updated": "2015-09-28T09:09:23.000+0000" }, { "id": "365150", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Is it possible to assign High or Medium priority to this issue? ", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-28T21:23:54.000+0000", "updated": "2015-09-29T16:25:41.000+0000" }, { "id": "365218", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "We really need someone to look this issue.\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-29T07:17:37.000+0000", "updated": "2015-09-29T07:17:37.000+0000" }, { "id": "365219", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Can someone assign this issue to another developer?\r\nWe have not received any update yet.\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-29T07:21:19.000+0000", "updated": "2015-09-29T07:21:19.000+0000" }, { "id": "365268", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I have added source code, comet server documentation and how to reproduce the issue.\r\nPlease inform us about this issue as soon as possible we really waited too long without any response.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-29T16:27:40.000+0000", "updated": "2015-09-29T16:27:40.000+0000" }, { "id": "365398", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I have simplified the app.js code, you need to get following response when you send fake news but Android gets runtime error instead of response:\r\n\r\n[INFO] : TypeId:TestType\r\n[INFO] : notification:{\"py/object\":\"NewsLib.DefaultNewsItem.DefaultNewsItem\",\"readCount\":0,\"uid\":\"20150930141554\",\"source\":\"TestSource\",\"symbol\":\"EURUSD\",\"dateTime\":{\"py/repr\":\"datetime/datetime.datetime(2015, 9, 30, 14, 15, 54, 430528)\"},\"thumbnailID\":\"http://www.forexsirketleri.org/uploads/destekfx-inceleme.png\",\"header\":\"My Header\",\"typeId\":\"TestType\",\"keywords\":[\"\",\"usd\",\"abd\",\"eurusd\",\"eur\",\"euro bölgesi\"],\"pretext\":\"pretext\",\"isRefresh\":false,\"isDelete\":false,\"stocks\":\"\",\"timestamp\":1446207300000}\r\n[INFO] : its working!!!", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-30T11:24:28.000+0000", "updated": "2015-09-30T13:29:21.000+0000" }, { "id": "365403", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello,\r\nit is because news is not received by Android, but iOS works smoothly you will not get runtime error with iOS", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-30T12:33:42.000+0000", "updated": "2015-09-30T12:39:51.000+0000" }, { "id": "365408", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "It's because opensession.responseText only filled in iOS but not on Android", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-30T14:03:47.000+0000", "updated": "2015-09-30T14:03:47.000+0000" }, { "id": "365440", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I even more simplified the code. You do not need to send news. ResponseText is empty for Android but iOS is not empty.\r\nCode is not complicated and issue is really clear. ", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-09-30T17:55:11.000+0000", "updated": "2015-09-30T17:55:11.000+0000" }, { "id": "365530", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello Amimul,\r\nThank you for response. Because our customer waiting for Android version and we are already late could you make this ticket high-priority?\r\n\r\nThank you.\r\n", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-01T07:40:59.000+0000", "updated": "2015-10-02T11:21:53.000+0000" }, { "id": "365649", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello Amimul,\r\nany update so far?\r\n\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-02T11:21:39.000+0000", "updated": "2015-10-02T11:21:39.000+0000" }, { "id": "365782", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello,\r\nany update from engineering team?\r\n\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-05T14:32:11.000+0000", "updated": "2015-10-05T14:32:11.000+0000" }, { "id": "365888", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello,\r\nany update from engineering team?\r\nThank you.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-06T10:59:25.000+0000", "updated": "2015-10-06T10:59:25.000+0000" }, { "id": "366562", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello,\r\nwe reallly need a feedback. I have created the issue 1th of September.\r\nThank you. ", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-12T20:37:30.000+0000", "updated": "2015-10-12T20:37:30.000+0000" }, { "id": "367532", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Hello, any advance so far?", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-10-22T14:08:27.000+0000", "updated": "2015-10-22T14:08:27.000+0000" }, { "id": "369776", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi [~ceyhun],\r\n\r\nWe moved this issue to our Engineering queue. Waiting for engineering to schedule this.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-11T18:56:19.000+0000", "updated": "2015-11-11T18:56:19.000+0000" }, { "id": "370347", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Thank you @Shak Hossain.\r\nWhen will 2015 Sprint 24 SDK start?", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-11-16T15:37:45.000+0000", "updated": "2015-11-16T15:37:45.000+0000" }, { "id": "372399", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~ceyhun] Is there a way to show the example by using \"curl\" in terminal?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-08T08:17:54.000+0000", "updated": "2015-12-08T08:53:01.000+0000" }, { "id": "372424", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "hello, no curl example. But the there had been some change after I have created the issue (login password api url etc..). So I updated the code as below. Could you try this simplified version?\r\n\r\n[app.js|https://www.dropbox.com/s/lfwayfcl2pyua5e/app.js?dl=0]", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-12-08T15:46:49.000+0000", "updated": "2015-12-08T15:46:49.000+0000" }, { "id": "372425", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Running example first iOS then Android reveals the problem clearly.", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2015-12-08T15:47:29.000+0000", "updated": "2015-12-08T15:47:29.000+0000" }, { "id": "372470", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~ceyhun] thanks for the fast response. I'll try the new simplified version.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-09T02:31:34.000+0000", "updated": "2015-12-09T02:31:34.000+0000" }, { "id": "372673", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged for Release 5.2.0.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-11T02:14:32.000+0000", "updated": "2015-12-11T02:14:32.000+0000" }, { "id": "374965", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-20T19:03:16.000+0000", "updated": "2016-01-20T19:03:16.000+0000" }, { "id": "375597", "author": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Thank you for fixing this issue.\r\nCould you delete attachments app_simplified, app.js and COMET_ENG.pdf? These are about private services that our customer have prefer not to be disclosed.\r\nI can see that there are other ways to replicate this issue.\r\nThank you.\r\n", "updateAuthor": { "name": "ceyhun", "key": "ceyhun", "displayName": "Ceyhun Kazel", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2016-02-01T13:18:02.000+0000", "updated": "2016-02-01T13:18:02.000+0000" } ], "maxResults": 40, "total": 40, "startAt": 0 } } }