Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5933918277 for ; Fri, 30 Oct 2015 19:03:28 +0000 (UTC) Received: (qmail 10769 invoked by uid 500); 30 Oct 2015 19:03:28 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 10624 invoked by uid 500); 30 Oct 2015 19:03:28 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 10571 invoked by uid 99); 30 Oct 2015 19:03:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 19:03:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AEB832C14F2 for ; Fri, 30 Oct 2015 19:03:27 +0000 (UTC) Date: Fri, 30 Oct 2015 19:03:27 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-9910) Android permission error for gallery images with target height/width MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14983090#comment-14983090 ] Richard B Knoll edited comment on CB-9910 at 10/30/15 7:02 PM: --------------------------------------------------------------- Allow edit also requires the permission and just doesn't work with the gallery source type it seems. No cropping window comes up and instead of the gallery chooser we get a generic file picker which seems like a much worse experience. This is mentioned in another JIRA somewhere, I think. was (Author: riknoll): Allow edit also requires the permission and just doesn't work it with the gallery it seems. No cropping window comes up and instead of the gallery chooser we get a generic file picker which seems like a much worse experience. This is mentioned in another JIRA somewhere, I think. > Android permission error for gallery images with target height/width > -------------------------------------------------------------------- > > Key: CB-9910 > URL: https://issues.apache.org/jira/browse/CB-9910 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android 6.0.0 Marshmallow on a Nexus 6, cordova-android 5.0.0 (master), cordova-plugin-camera 1.2.1 (master) > Reporter: Richard B Knoll > Assignee: Richard B Knoll > Priority: Critical > Labels: android > > When you request an image from the PHOTOLIBRARY source in Android, if you set targetHeight and targetWidth you get a SecurityException for not requesting READ_EXTERNAL_STORAGE. Stack trace: > {code} > java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=5306, uid=10185 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() > at android.content.ContentProvider.enforceReadPermissionInner(ContentProvider.java:605) > at android.content.ContentProvider$Transport.enforceReadPermission(ContentProvider.java:480) > at android.content.ContentProvider$Transport.query(ContentProvider.java:211) > at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112) > at android.os.Binder.execTransact(Binder.java:453) > java.io.FileNotFoundException: /storage/emulated/0/Android/data/io.cordova.hellocordova/cache: open failed: ENOENT (No such file or directory) > at libcore.io.IoBridge.open(IoBridge.java:452) > at java.io.FileOutputStream.(FileOutputStream.java:87) > at java.io.FileOutputStream.(FileOutputStream.java:127) > at java.io.FileOutputStream.(FileOutputStream.java:116) > at org.apache.cordova.camera.CameraLauncher.ouputModifiedBitmap(CameraLauncher.java:549) > at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:669) > at org.apache.cordova.camera.CameraLauncher.access$000(CameraLauncher.java:66) > at org.apache.cordova.camera.CameraLauncher$1.run(CameraLauncher.java:765) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) > at java.lang.Thread.run(Thread.java:818) > Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) > at libcore.io.Posix.open(Native Method) > at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) > at libcore.io.IoBridge.open(IoBridge.java:438) > ... 10 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org