{ "id": "93482", "key": "TIMOB-9639", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-19T13:58:45.000+0000", "created": "2012-06-19T13:06:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_network", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-03T15:47:10.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": "Noticed while running the test case from TIMOB-8906 that the simulator automatically exits.\r\n\r\nGetting BAD_ACCESS in XCode in the_destroy method of Network Module", "attachment": [], "flagged": false, "summary": "IOS: Network module crash", "creator": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "199216", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK 2.1.0.v20120619142258 hash r5982b78e\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown\r\n\r\n*QE use the code below when porting this*\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\nvar text = Ti.UI.createLabel({\r\n text: '',\r\n});\r\nwin1.add(text);\r\nwin1.open();\r\ncharsetTest(\"http://kangaechu.com/utf8.html\");\r\ncharsetTest(\"http://kangaechu.com/shiftjis.html\");\r\ncharsetTest(\"http://kangaechu.com/eucjp.html\");\r\ncharsetTest(\"http://kangaechu.com/iso2022jp.html\");\r\n \r\nfunction charsetTest(url){\r\n var xhr = Ti.Network.createHTTPClient();\r\n \r\n xhr.onload = function() {\r\n if(this.status == 200) {\r\n var html = this.responseText;\r\n if(html == null){\r\n text.text = text.text + url + ' is null.\\n\\n';\r\n }\r\n else if(html.match(/([\\s\\S]*)<\\/body>/)){\r\n var body = RegExp.$1;\r\n text.text = text.text + url + body;\r\n }else{\r\n text.text = text.text + url + ' is 200, but no body element.\\n\\n';\r\n }\r\n }else{\r\n text.text = text.text + url + ' status code is ' + this.status + '\\n\\n';\r\n }\r\n };\r\n xhr.onerror = function() {\r\n text.text = text.text + url + ' status code is ' + this.status + '\\n\\n';\r\n \r\n };\r\n xhr.open(\"GET\", url, false);\r\n xhr.send();\r\n \r\n}\r\n{code}", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-19T15:31:27.000+0000", "updated": "2012-06-19T15:31:27.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }