You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard B Knoll (JIRA)" <ji...@apache.org> on 2016/03/09 20:34:40 UTC

[jira] [Commented] (CB-10825) Permission not being requested for photolibrary source

    [ https://issues.apache.org/jira/browse/CB-10825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15187748#comment-15187748 ] 

Richard B Knoll commented on CB-10825:
--------------------------------------

Might be related to the Google Photos changes. We currently only request permissions for camera options that modify the image (targetHeight, targetWidth, allowEdit, correctOrientation), but looks like we need to always request them now. Eventually, we need to get our permission requesting straight so that we only request them after we have selected the photo and we properly handle them being denied rather than just returning an error

> Permission not being requested for photolibrary source
> ------------------------------------------------------
>
>                 Key: CB-10825
>                 URL: https://issues.apache.org/jira/browse/CB-10825
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Richard B Knoll
>            Priority: Critical
>              Labels: android, regression, reproduced, triaged
>
> We get a SecurityException for certain cameraOptions in Marshmallow because we do not request the READ_EXTERNAL_STORAGE permission. Here is a repro set:
> {code}
> {
>     saveToPhotoAlbum: false,
>     targetHeight: -1,
>     targetWidth: -1,
>     allowEdit: false,
>     correctOrientation: false,
>     destinationType: Camera.DestinationType.FILE_URI,
>     mediaType: Camera.MediaType.PICTURE,
>     encodingType: 1,
>     sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM
> }
> {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