From issues-return-93504-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Mon Mar 19 20:57:04 2018 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 6CE0118831 for ; Mon, 19 Mar 2018 20:57:04 +0000 (UTC) Received: (qmail 74132 invoked by uid 500); 19 Mar 2018 20:57:04 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 74096 invoked by uid 500); 19 Mar 2018 20:57:04 -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 74078 invoked by uid 99); 19 Mar 2018 20:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2018 20:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9D00AC00E8 for ; Mon, 19 Mar 2018 20:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5Q9wq2YstMFC for ; Mon, 19 Mar 2018 20:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id DAC9C5F5B1 for ; Mon, 19 Mar 2018 20:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DC7BFE0D77 for ; Mon, 19 Mar 2018 20:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 39171214BB for ; Mon, 19 Mar 2018 20:57:00 +0000 (UTC) Date: Mon, 19 Mar 2018 20:57:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13307) Accessing Google Photos on Pixel from cordova-plugin-camera MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13307?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164054= 32#comment-16405432 ]=20 ASF GitHub Bot commented on CB-13307: ------------------------------------- infil00p commented on issue #286: CB-13307: (Android) Fixed issue when unab= le to load image with mime t=E2=80=A6 URL: https://github.com/apache/cordova-plugin-camera/pull/286#issuecomment-= 374373421 =20 =20 I'm cool with it, but I can't even test if this fixes it because I don't= even have the ability to pull from Google Photos when I test it.=20 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Accessing Google Photos on Pixel from cordova-plugin-camera > ----------------------------------------------------------- > > Key: CB-13307 > URL: https://issues.apache.org/jira/browse/CB-13307 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Reporter: David Briglio > Priority: Major > > Currently when trying to access some photos from Google Photos, it fails = to load. Android 8.0 on Google Pixel, cordova version 6.5.0, cordova-plugin= -camera version 2.4.1. > Causes: > 1) Only mimetypes "image/jpeg" and "image/png" are accepted, all other ty= pes are considered an invalid image. The mimetype of the image I am loading= gets set to "image/*". > 2) In FileHelper.java: when hitting the isGooglePhotosUri method, the uri= authority is compared against "com.google.android.apps.photos.content", wh= ere the actual is "com.google.android.apps.photos.contentprovider". This ca= uses the logic to dismiss the image as not from Google Photos. > After applying fixes for these two areas, I am able to successfully load = all of my images. > Merge request [here|https://github.com/apache/cordova-plugin-camera/pull/= 286]. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org