{ "id": "172023", "key": "TIMOB-26273", "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-08-07T16:29:36.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [ { "id": "56721", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "157847", "key": "TIMOB-21897", "fields": { "summary": "Ti.Media Test Suite: Titanium.Media Acceptance TIMOB-14533", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-02-17T11:39:33.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Steps to reproduce* \r\n# Create an android application with the testcase below\r\n# Build to android device\r\n# Click open camera\r\n\r\n*Testcase*\r\n\r\n{noformat}\r\nfunction askCameraPermissions() {\r\n\tif (Ti.Media.hasCameraPermissions()) {\r\n\r\n\t\tvar win = Ti.UI.createWindow({\r\n\t\t\tbackgroundColor: '#fff'\r\n\t\t});\r\n\r\n\t\tvar button = Ti.UI.createButton({\r\n\t\t\ttop: 10,\r\n\t\t\ttitle: \"open camera\"\r\n\t\t});\r\n\r\n\t\tbutton.addEventListener(\"click\", function() {\r\n\t\t\tTitanium.Media.showCamera({\r\n\r\n\t\t\t\tsuccess: function(event) {\r\n\t\t\t\t\tTi.API.info(\"***************** woop\");\r\n\t\t\t\t},\r\n\t\t\t\tcancel: function() {\r\n\t\t\t\t\tTi.API.info(\"***************** cancel\");\r\n\t\t\t\t},\r\n\t\t\t\terror: function(error) {\r\n\t\t\t\t\tTi.API.info(\"***************** error\");\r\n\t\t\t\t},\r\n\t\t\t\tsaveToPhotoGallery: true,\r\n\t\t\t\tmediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\twin.add(button);\r\n\t\twin.open();\r\n\t} else {\r\n\t\tTi.Media.requestCameraPermissions(function(e) {\r\n\t\t\tif (e.success === true) {\r\n\t\t\t\tTi.API.info(\"Camera Permissions Granted\");\r\n\t\t\t} else {\r\n\t\t\t\talert(\"Access denied, error: \" + e.error);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\naskCameraPermissions();\r\n{noformat}\r\n\r\n\r\n*Error*\r\n\r\n{noformat}\r\n[ERROR] \b\b \bTiMedia: (main) [678,3423] Failed to create external storage directory.\r\n[INFO] \b\b \b ***************** error\r\n{noformat}\r\n\r\n\r\n\r\n*Expected*\r\nNo error is thrown and the camera is opened", "attachment": [], "flagged": false, "summary": "Android: saveToPhotoGallery throws an error if there is no external storage.", "creator": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "environment": "Appc SDK: 7.3.0.v20180806123131\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.4\r\nTi CLI: 5.1.1\r\nNode: 8.9.4\r\nNPM: 6.0.0\r\nPixel 2 XL (8.1.0)", "comment": { "comments": [ { "id": "440554", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I suspect this issue will happen if the device does not have external storage mounted. Such as a device removable storage.\r\n\r\nI don't think setting \"saveToPhotoGallery\" to true/false is a factor.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-07T17:05:52.000+0000", "updated": "2018-08-07T17:05:52.000+0000" }, { "id": "442328", "author": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "body": "Any news? This bug is HUGE!", "updateAuthor": { "name": "Pietro", "key": "pietro", "displayName": "Pietro Granati", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-10-05T08:34:11.000+0000", "updated": "2018-10-05T08:34:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }