From issues-return-51499-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Thu Nov 5 17:39:28 2015 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 3A67E18F64 for ; Thu, 5 Nov 2015 17:39:28 +0000 (UTC) Received: (qmail 73415 invoked by uid 500); 5 Nov 2015 17:39:28 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 73394 invoked by uid 500); 5 Nov 2015 17:39: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 73353 invoked by uid 99); 5 Nov 2015 17:39:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2015 17:39:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C70E32C1F5E for ; Thu, 5 Nov 2015 17:39:27 +0000 (UTC) Date: Thu, 5 Nov 2015 17:39:27 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9548) camera.getPicture() - invalid FILE_URI when returning original image from device 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-9548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14992068#comment-14992068 ] Richard B Knoll commented on CB-9548: ------------------------------------- That was my thought process as well. A fix to this might end up being a breaking change so I think I'll take it to the dev list and see what others say. I might also do some investigation into what the other platforms are doing. > camera.getPicture() - invalid FILE_URI when returning original image from device > -------------------------------------------------------------------------------- > > Key: CB-9548 > URL: https://issues.apache.org/jira/browse/CB-9548 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Archlinux OS > Cordova CLI (5.2.0) > Android platform (4.1.1) > cordova-plugin-camera (1.2.0) > --------------------- > Android Simulator (4.4.4 & 5.0.1) > Xperia Z3Compact (5.1.1) > Xperia Sola (4.4.4) > Reporter: Tanase Butcaru > Assignee: Richard B Knoll > Labels: Android, reproduced, triaged > > Camera plugin returns a NATIVE_URI path when trying to get the original image with +getPicture()+ method instead of returning the FILE_URI path (even though the _destinationType_ is set to _navigator.camera.DestinationType.FILE_URI_). > Until now I was using the camera plugin to get modified images only (by passing the _targetHeight_ & _targetWidth_ and/or _allowEdit_ arguments to +getPicture()+ method), but when I tried to get the original image I found this bug. > Tested with devices mentioned in the Environment section for both Android & iOS platforms, but only Android manifests this behaviour.. > _I've created a github repo where I intend to reproduce all cordova core plugin bugs that I discover. I think this is the best way to test/reproduce any issue._ > *How to reproduce the bug*: > {code} > git clone https://github.com/TanaseButcaru/cdv.bugs.git > cd cdv.bugs/bugs/getPictureFileURI > cordova run/emulate android > {code} > When the app starts you have two options for the _getPictureFileURI_ bug: > * getPicture with edits (targetHeight/Width) - OK > * getPicture without edits (original image) - *wrong FILE_URI* > For the second option, where the bug appears, I have provided a external (temporary) solution: I'm using the [cordova-plugin-filepath|https://github.com/hiddentao/cordova-plugin-filepath] plugin to get the FILE_URI from the NATIVE_URI and as you can see in the sample app, it works well, but it would be better if the camera plugin would do this by default when returning an unmodified image. -- 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