{ "id": "172614", "key": "TIMOB-26620", "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": null, "resolutiondate": null, "created": "2018-11-14T14:09:08.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-29T23:54:14.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "When trying to create a file in external storage in a module with granted runtime permissions the file operation throws a permission denied exception.\r\n\r\nThe attachment contains a module and app to reproduce this issue. \r\n\r\nSteps to reproduce:\r\n- build the module\r\n- add the module to the app\r\n- build the app with Titanium SDK 7.3.0.GA or higher\r\n\r\n- run the app on a device with Android 6.0 or higher\r\n- grant storage permissions \r\n- click on the red rectangle (this triggers the file operation in the module)\r\n\r\nexpected: File is created\r\nactual: File creation throws permission denied exception\r\n\r\nThis works without any issues with 7.2.0.GA.", "attachment": [ { "id": "65853", "filename": "PermissionBugSample.zip", "author": { "name": "abendl", "key": "abendl", "displayName": "Alex Bendl", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-14T13:59:32.000+0000", "size": 7338721, "mimeType": "application/zip" } ], "flagged": false, "summary": "Exception when creating file on external storage in a module on Android", "creator": { "name": "abendl", "key": "abendl", "displayName": "Alex Bendl", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "abendl", "key": "abendl", "displayName": "Alex Bendl", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium CLI 5.0.9\r\nTitanium SDK 7.4.0.GA\r\nAny Android device with Android 6.0 or higher", "comment": { "comments": [ { "id": "444071", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I was able to reproduce the issue with the sample code and module provided with SDK 7.4.0GA and 7.5.0.GA in Android 8.1.0 device. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-29T23:53:39.000+0000", "updated": "2018-11-29T23:53:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }