{ "id": "173127", "key": "TIMOB-26954", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-06-13T18:33:40.000+0000", "created": "2019-03-14T14:39:17.000+0000", "epic": { "id": 170944, "key": "TIMOB-25712", "name": "Support Android Next", "summary": "Android: Support Android Q", "color": { "key": "color_5" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [ "Blob", "JSON", "android", "engSchedule" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" }, { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [ { "id": "57707", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "173797", "key": "TIMOB-27179", "fields": { "summary": "Android:Unable to read json from resourcesDirectory in Android Q.", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "58288", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174856", "key": "TIMOB-27823", "fields": { "summary": "Android: javascript files/content assumed to be binary for Ti.Blob on apilevel 29+", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-03-25T17:48:49.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": "Running the following code, returns t==null\r\n{quote}\r\nvar file=Ti.Filesystem.getFile(Config.PathRoot.resources,'some.json');\r\nvar d=file.read();\r\nvar t=d.text;\r\n{quote}\r\n\r\nAnalysis:\r\nTiBlob#getText checks TiMimeTypeHelper.isBinaryMimeType(mimetype) and if the file is binary, it only allows application/octet-stream. The detected mime type comes from android.webkit.MimeTypeMap#getMimeTypeFromExtension (in TiMimeTypeHelper#getMimeTypeFromFileExtension). This used to return the octet-steam mime on *.json files, but it was probably fixed to properly return application/json.\r\n", "attachment": [], "flagged": false, "summary": "Android: Reading a JSON file fails on Android Q", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Android Q, Titanium 7.3.0 (but the master branch will also fail)", "closedSprints": [ { "id": 1141, "state": "closed", "name": "2019 Sprint 12", "startDate": "2019-06-03T22:00:37.435Z", "endDate": "2019-06-14T22:00:00.000Z", "completeDate": "2019-06-15T03:44:20.826Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "446833", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "BTW, I fixed this in TiMimeTypeHelper#isBinaryMimeType\r\n{quote}\r\nif (mimeType.startsWith(\"application/\") && !mimeType.endsWith(\"xml\") && !mimeType.endsWith(\"json\"))\r\n return true;\r\nelse ...\r\n{quote}\r\nNot very comprehensive, but does the job", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2019-03-14T15:09:14.000+0000", "updated": "2019-03-14T15:09:36.000+0000" }, { "id": "447007", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks for sharing with us. Just following up to check the status of this case and if you need further help on it. \r\n\r\n ", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-20T08:06:45.000+0000", "updated": "2019-03-20T08:06:45.000+0000" }, { "id": "447411", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ahutton] Would you please check if you can repro this? I just spoke with [~jquick] and he suggested to do a quick check before scheduling this.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-01T23:16:08.000+0000", "updated": "2019-04-01T23:16:08.000+0000" }, { "id": "448411", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] Reproducible. ", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-15T21:42:06.000+0000", "updated": "2019-05-15T21:42:06.000+0000" }, { "id": "448785", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "There is also an issue on github from the Android team about this: https://github.com/appcelerator/titanium_mobile/issues/10852 with some log-data", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-06-03T17:56:02.000+0000", "updated": "2019-06-03T17:56:02.000+0000" }, { "id": "448802", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10931", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-04T02:58:38.000+0000", "updated": "2019-06-04T02:58:38.000+0000" }, { "id": "448880", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-05T23:24:08.000+0000", "updated": "2019-06-05T23:24:08.000+0000" }, { "id": "448966", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/10955", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-10T23:38:34.000+0000", "updated": "2019-06-10T23:38:34.000+0000" }, { "id": "448993", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-11T16:08:30.000+0000", "updated": "2019-06-11T16:08:30.000+0000" }, { "id": "449067", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on SDK 8.2.0.v20190612155743 and 8.1.0.v20190612160220. Works as expected. Closing\r\n\r\n{code}\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 10.13.0\r\n npm Version = 6.4.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.2.0.v20190612155743 and 8.1.0.v20190612160220\r\nEmulator = pixel 2 Q\r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-06-13T18:33:35.000+0000", "updated": "2019-06-13T18:33:35.000+0000" }, { "id": "451156", "author": { "name": "Claudiu Stefaniga", "key": "claudiu stefaniga", "displayName": "cstefaniga ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, \r\n\r\nI am contacting you on behalf of ATOSS Software company. Our mobile application is built based on your framework entirely. \r\n\r\nThe problem is the following: as you already know, android 10 was officially released a few days ago and some of our customers already have it. We received from them a lot of complaints in which they said that the application doesn't work anymore.\r\nWe are reading a local JSON file and the problem described here reproduces here on our product. \r\n\r\nUnfortunately we are unable to change sdk from 7.5.2 (what we currently have) to 8.1.0 (which has the fix) in a time that is agreeable by the customers so this leave us with no option but the sdk patch.\r\n\r\nCould we please get a patch with this fix for SDK 7.5.2 ?\r\n\r\nWe would greatly appreciate your support on this one! \r\nThanks!", "updateAuthor": { "name": "Claudiu Stefaniga", "key": "claudiu stefaniga", "displayName": "cstefaniga ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-06T07:19:50.000+0000", "updated": "2019-09-06T07:19:50.000+0000" }, { "id": "451157", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "For anyone running into this, here a custom build thats 7.5.2-GA + this patch (nothing else): https://www.dropbox.com/s/pmsn9g9v7gqdkme/mobilesdk-7.5.2-osx.zip?dl=1", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-09-06T08:42:10.000+0000", "updated": "2019-09-06T08:42:10.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }