{ "id": "119904", "key": "TIMOB-15158", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-27T21:10:34.000+0000", "created": "2013-09-13T11:19:29.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.1.3" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-27T21:10:34.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": "This is not a regression.\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}\r\n\r\nSteps to Reproduce:\r\n1)Copy paste the code in app.js and run the app.\r\n\r\nExpected Result:\r\n1)The application should not crash. Following output should be shown on screen: \r\nhttp://kangaechu.com/utf8.html \r\nHello! This encoding is \"UTF-8\". こんにちわ\r\nhttp://kangaechu.com/shiftjis.html \r\nHello! This Encoding is \"Shift_JIS\". こんにちわ\r\nhttp://kangaechu.com/eucjp.html \r\nHello! This encoding is \"EUC-JP\". こんにちわ\r\nhttp://kangaechu.com/iso2022jp.html \r\nHello! This encoding is \"ISO-2022-JP\". $B$3$s$K$A$o(B\r\n\r\nActual Result:\r\n1)http://kangaechu.com/utf8.html status code is 500\r\n\r\n http://kangaechu.com/shiftjis.html status code is 500\r\n\r\n http://kangaechu.com/eucjp.html status code is 500\r\n\r\n http://kangaechu.com/iso2022jp.html status code is 500\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: createHttpClient cannot determine the charset encoding from HTML meta tag. gives status code 500", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\n\r\nAppc Studio: 3.1.3.201309132456\r\nSdk:3.1.3.v20130912171547\r\nCLI version : 3.1.2\r\nAlloy : 1.2.2-beta\r\nMAC OSX: 10.8.4\r\nXCode : 5.0 GM seed\r\nDevice: iPhone 4s(v7.0),iphone5(v7.0),ipad(v7.0),ipad mini(v6.0)", "comment": { "comments": [ { "id": "281858", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue still occurs on\nTested Environment:\n\nAppcelerator Studio: 3.2.0.201311272052\nSDK:3.2.0.v20131127194046\nalloy: 1.3.0-beta\nacs: 1.0.9\nnpm: 1.3.2\ntitanium: 3.2.0-beta\t\ntitanium-code-processor: 1.1.0-beta\nXcode:5.0.2\nOS: Mac OSX 10.9\nDevice: iphone5(V7.0.4)\n\nBut now getting error as:\nResult:\nhttp://kangaechu.com/utf8.html status code is 404\n\nhttp://kangaechu.com/shiftjis.html status code is 404\n\nhttp://kangaechu.com/eucjp.html status code is 404\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T08:13:17.000+0000", "updated": "2013-12-02T08:13:17.000+0000" }, { "id": "424991", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T21:10:34.000+0000", "updated": "2017-07-27T21:10:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }