{ "id": "174645", "key": "TIMOB-27731", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-04-02T15:25:45.000+0000", "created": "2020-01-22T21:41:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" }, { "id": "20972", "description": "", "name": "Release 8.3.1", "archived": false, "released": true, "releaseDate": "2020-01-17" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-04-02T15:25:45.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": "h5.Description \r\n\r\nWhen using the following code, the camera fails to open and I get the following error log. This looks to be a regression from 8.2.0.GA\r\n\r\n{code}\r\n[ERROR] TiMedia: (main) [122857,122924] Failed to create file: Permission denied\r\n[DEBUG] DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@701a6fd[TiActivity]\r\n[INFO] { code: 2, error: 'Unable to create file for storage', success: false }\r\n[INFO] error, womp womp\r\n{code}\r\n\r\n{code}\r\nconst win = Ti.UI.createWindow();\r\n\r\nwin.addEventListener('click', _ => {\r\n Ti.Media.requestCameraPermissions(e => {\r\n if (!e.success) {\r\n console.warn('Failed to get permissions.');\r\n return;\r\n }\r\n Ti.Media.showCamera( {\r\n success(e) {\r\n console.log(e);\r\n },\r\n cancel(e) {\r\n console.warn(e);\r\n },\r\n error(e) {\r\n console.error(e);\r\n },\r\n saveToPhotoGallery: true,\r\n mediaTypes: [ Ti.Media.MEDIA_TYPE_PHOTO ]\r\n });\r\n })\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code above to an existing app.js\r\n2. Build to Android\r\n\r\nh5.Actual\r\n\r\nAbove error log\r\n\r\nh5.Expected\r\n\r\nCamera should open", "attachment": [], "flagged": false, "summary": "Android: Camera fails to open when using saveToPhotoGallery: true", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "SDK: 8.3.0.GA, 8.3.1.GA\r\nOnePlus 7T Android 10", "closedSprints": [ { "id": 1180, "state": "closed", "name": "2020 Sprint 4", "startDate": "2020-02-17T09:48:41.834Z", "endDate": "2020-02-28T09:48:00.000Z", "completeDate": "2020-02-28T17:07:21.344Z", "originBoardId": 114 }, { "id": 1181, "state": "closed", "name": "2020 Sprint 5", "startDate": "2020-03-02T18:45:02.513Z", "endDate": "2020-03-13T18:45:00.000Z", "completeDate": "2020-03-13T16:42:04.632Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "453771", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "This looks to be the same as TIMOB-26273 but it works on 8.2.0.GA for me and is broken on 8.3.0.GA so filed a new ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-01-22T21:46:29.000+0000", "updated": "2020-01-22T21:46:29.000+0000" }, { "id": "454251", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2020-02-13T15:27:16.000+0000", "updated": "2020-02-13T15:59:57.000+0000" }, { "id": "454379", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11490", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-21T01:21:39.000+0000", "updated": "2020-02-21T01:21:39.000+0000" }, { "id": "454804", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "*FR: Pass*\r\n\r\n*Test Environment*\r\nSDK Ver: 8.3.1.GA & 9.0.0.GA & 9.1.0(this PR)\r\nOS Ver: 10.14.6\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.0.0\r\nDaemon Ver: 3.2.0\r\nNode Ver: 10.17.0\r\nJava Ver: 1.8.0_162\r\nEmulators: Android 5.1 (API 22) & Android 10 (API 29)\r\n\r\nPR merged.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-03-23T11:10:45.000+0000", "updated": "2020-03-23T11:10:45.000+0000" }, { "id": "454945", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version 9.1.0.v20200401121418.\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/11490", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-02T15:25:37.000+0000", "updated": "2020-04-02T15:25:37.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }