{ "id": "170403", "key": "AC-5395", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-11-29T20:54:04.000+0000", "created": "2017-11-21T07:04:32.000+0000", "labels": [ "6.2.2", "android", "httpclient" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-30T01:32:54.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "When building on android with CLI 6.3.0 some variables that are defined and used inside a HTTPClient are undefined on the HTTPClient onload.\r\n\r\nIn the example below you will see that the `methodVar` inside the onload is undefined - I am guessing its to do with the memory fixes they pushed in 6.3.0 but I am not sure...\r\n\r\nRelavent code:\r\n\r\n\r\n{code:java}\r\n// set method as data.method else CHECK\r\nvar methodVar = data.method || \"checkURL\";\r\n\r\n Ti.API.info(\"methodVar: \" + methodVar);\r\n \r\n// createHTTPClient \r\nvar client = Ti.Network.createHTTPClient({\r\n onload : function(e) {\t\t\t\t\t\t\t\t\t\t\t\t// if success do \r\n Ti.API.info(\"methodVar: \" + methodVar);\r\n },\r\n onerror : function(e) {\r\n});\r\n \r\n // open the connection with client.open with url\r\n client.open('HEAD', url);\r\n \r\n // Send the request.\r\n client.send(); \r\n \r\n};\t \r\n{code}\r\n ", "attachment": [], "flagged": false, "summary": "Android CLI 6.3.0 causes variables in HTTPClient to be undefined", "creator": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android\r\nCLI 6.3.0", "comment": { "comments": [ { "id": "431093", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dieskim],\r\n\r\nThanks for sharing with us. Can you please share a complete test case to reproduce this on our end?\r\n\r\nBest\r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-21T08:20:32.000+0000", "updated": "2017-11-21T08:20:32.000+0000" }, { "id": "431094", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What do you need for a complete test case? Do you have an example of a complete test case?", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-21T08:22:48.000+0000", "updated": "2017-11-21T08:22:48.000+0000" }, { "id": "431129", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We need a full sample code/project that only contain the issue components and can be used for testing to verifying the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-21T20:44:50.000+0000", "updated": "2017-11-29T20:53:46.000+0000" }, { "id": "431505", "author": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "yes you can close, this seems to work normally now - I guess it must have been related to another bug with logs that was fixed", "updateAuthor": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-30T01:32:54.000+0000", "updated": "2017-11-30T01:32:54.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }