{ "id": "117410", "key": "TIMOB-14628", "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15938", "description": "2014 Sprint 06 Tooling", "name": "2014 Sprint 06 Tooling", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-27T23:26:04.000+0000", "created": "2013-07-19T20:26:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "mobileweb", "module_filesystem", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-07-26T05:07:18.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "When reading in a file that has a mime type of \"application/json\", the contents are seen as binary and then cannot be parsed correctly.\r\n\r\nI created pull request 4465 to fix this issue: https://github.com/appcelerator/titanium_mobile/pull/4465\r\n", "attachment": [ { "id": "48973", "filename": "TIMOB-14628.zip", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T16:45:14.000+0000", "size": 4065196, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: Data with JSON mime type seen as binary ", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": "Window 8 x64, Internet Explorer 10, Titanium SDK 3.1.1 GA", "comment": { "comments": [ { "id": "280541", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Is there any update on this? I am installing the latest SDK from github and everytime I install, I have to go and fix this file... \r\n\r\nIt is a very small change. Any chance this could get put into 3.2? Thanks!!", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-21T14:40:00.000+0000", "updated": "2013-11-21T14:40:00.000+0000" }, { "id": "292559", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Are there any updates on this issue? How can we get this bug fix pushed into a build? Thanks!!", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-12T02:40:45.000+0000", "updated": "2014-02-12T02:40:45.000+0000" }, { "id": "298929", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4460", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-03-27T06:02:11.000+0000", "updated": "2014-03-27T06:02:11.000+0000" }, { "id": "304075", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~emerriman] I don't have a test case. Turns out the Bryan had fixed this in the Windows Hybrid branch (prior to being merged with master) as well as we had a community PR from [~brentonhouse]. Bryan never had a test case as far as I know.\r\n\r\nTo test this, you can simply add a json file to your project, use Ti.Filesystem to read in the json file and you can check if the blob is binary and you can also print out its contents.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-08T18:39:48.000+0000", "updated": "2014-05-08T18:39:48.000+0000" }, { "id": "309018", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h5.Environment\r\nMac OSX 10.9.3\r\nWindows 8.1\r\nAppcelerator Studio, build: 3.3.0.201406111952\r\nTitanium SDK, build: 3.3.0.v20140613124912\r\nTitanium CLI, build: 3.3.0-rc\r\nAlloy: 1.4.0-rc\r\nChrome: 35.0.1916.153\r\nFirefox: 30.0.0\r\nSafari: 7.0.4\r\nInternet Explorer: 11.0.9600.17126\r\n\r\nh5.Results\r\nUsing Firefox, the Mime-Type displayed: application/json\r\nUsing Chrome, the Mime-Type displayed: text/plain; charset=x-user-defined\r\nUsing Safari, the Mime-Type displayed: text/plain; charset=x-user-defined\r\nUsing Internet Explorer, the Mime-Type displayed: application/json\r\n\r\nAlso tested on other platforms and found the following:\r\nAndroid: application/octet-stream\r\niOS: application/json\r\nBlackBerry: Does not display a mime type\r\n\r\nh5.Extra Information\r\nAll of the above can read the JSON file correctly and will not display any binary data.\r\nTherefore, closing this ticket.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-13T22:26:04.000+0000", "updated": "2014-06-17T01:07:27.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }