{ "id": "169947", "key": "TIMOB-25363", "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": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-26T21:21:21.000+0000", "created": "2017-10-02T21:39:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "consider-6.2.3" ], "versions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "issuelinks": [ { "id": "56021", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "160470", "key": "TIMOB-23429", "fields": { "summary": "Android N: File Permissions", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "56104", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "170101", "key": "TIMOB-25439", "fields": { "summary": "Android: Intent extra 'file://' URI not working on Android 7 or higher", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-10T22:15:55.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": "- As of Android 7.0, Intents should use a {{ContentProvider}} to provide the {{DATA}} URI of created Intents.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar extFile = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, 'test.pdf'),\r\n openPDF = function(pdf) {\r\n Ti.Android.currentActivity.startActivity(\r\n Ti.Android.createIntent({\r\n action : Ti.Android.ACTION_VIEW,\r\n type : 'application/pdf',\r\n data : pdf.nativePath\r\n })\r\n );\r\n };\r\n\r\nif (extFile.exists()) {\r\n openPDF(extFile);\r\n} else {\r\n var httpClient = Titanium.Network.createHTTPClient({\r\n onload: function() {\r\n extFile.createFile();\r\n extFile.write(this.responseData);\r\n openPDF(extFile);\r\n }\r\n });\r\n httpClient.open('GET','https://github.com/mozilla/pdf.js/raw/master/examples/helloworld/helloworld.pdf');\r\n httpClient.send();\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Intents should use ContentProvider", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 951, "state": "closed", "name": "2017 Sprint 20 SDK", "startDate": "2017-09-24T17:50:18.277Z", "endDate": "2017-10-08T17:50:00.000Z", "completeDate": "2017-10-09T20:38:07.840Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428647", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9500", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-02T22:03:36.000+0000", "updated": "2017-10-02T22:03:36.000+0000" }, { "id": "428669", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_3_X: https://github.com/appcelerator/titanium_mobile/pull/9504", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-03T17:11:37.000+0000", "updated": "2017-10-03T17:11:37.000+0000" }, { "id": "428712", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR's passed, PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-04T21:11:07.000+0000", "updated": "2017-10-04T21:11:07.000+0000" }, { "id": "428913", "author": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "body": "Hi Guys. Not sure if I should bring this up here or add another JIRA task. The same issue applies in other areas. For example, when you attach a file to an email the same error occurs. (Interestingly, I could attach a file to an email using Android 7.0/7.1 but not Android 8.0). The same error appears in the logs as when trying to open a PDF. It looks like there are a handful of other occurrences throughout the source code that it might apply. Sorry, my Java skills are not up to fixing this myself. If possible it would be great to get this fixed at the same time as the PDF fix. :)", "updateAuthor": { "name": "raefa", "key": "raefa", "displayName": "Raef Akehurst", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-10-10T22:43:33.000+0000", "updated": "2017-10-10T22:43:33.000+0000" }, { "id": "429245", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.0.0.v20171017155825 & 6.3.0.v20171017063048\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.10.0.201709271713\r\nSDK Ver: 7.0.0.v20171017155825, 6.3.0.v20171017063048\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.10-2\r\nAppc CLI: 6.3.0-master.14\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.5\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-18T18:36:28.000+0000", "updated": "2017-10-18T18:36:28.000+0000" }, { "id": "429558", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reopening because of a regression reported by the community:\r\n{code:js}\r\nvar intent = Ti.Android.createIntent({\r\n action: Ti.Android.ACTION_DIAL,\r\n data: 'tel:01112223334'\r\n});\r\nTi.Android.currentActivity.startActivity(intent);\r\n{code}\r\ncrashes with {{Message: Uncaught No Activity found to handle Intent}}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-25T11:32:57.000+0000", "updated": "2017-10-25T11:32:57.000+0000" }, { "id": "429683", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9559\r\n6_3_X: https://github.com/appcelerator/titanium_mobile/pull/9560", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T18:12:41.000+0000", "updated": "2017-10-26T18:12:41.000+0000" }, { "id": "429701", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for both master & backport PR.\r\nWaiting for merge to get enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T21:21:14.000+0000", "updated": "2017-10-26T21:21:14.000+0000" }, { "id": "429873", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 6.3.0.v20171030135813.\r\n\r\nStudio Ver: 4.10.0.201709271713\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.10-2\r\nAppc CLI: 6.3.0-master.15\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.6\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 6P --- Android 8.0.0\r\n ⇨ google Nexus 5 --- Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-31T01:34:54.000+0000", "updated": "2017-10-31T01:34:54.000+0000" }, { "id": "430425", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR merged.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-10T22:15:38.000+0000", "updated": "2017-11-10T22:15:38.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }