From issues-return-95678-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Sun Jul 1 22:03:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C1FF2180677 for ; Sun, 1 Jul 2018 22:03:04 +0200 (CEST) Received: (qmail 23510 invoked by uid 500); 1 Jul 2018 20:03:03 -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 23498 invoked by uid 99); 1 Jul 2018 20:03:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2018 20:03:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 462371A4109 for ; Sun, 1 Jul 2018 20:03:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 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, 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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hCOhidk90g-7 for ; Sun, 1 Jul 2018 20:03: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 07CC45F41A for ; Sun, 1 Jul 2018 20:03:02 +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 EF315E1056 for ; Sun, 1 Jul 2018 20:03: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 38A1B21840 for ; Sun, 1 Jul 2018 20:03:00 +0000 (UTC) Date: Sun, 1 Jul 2018 20:03:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-14097) Camera plugin crashes using getPicture on some files 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-14097?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165292= 17#comment-16529217 ]=20 ASF GitHub Bot commented on CB-14097: ------------------------------------- ochakov commented on issue #322: CB-14097: (android) Fix crash when selecti= ng some files with getPicture URL: https://github.com/apache/cordova-plugin-camera/pull/322#issuecomment-= 401629652 =20 =20 Happened to me when selecting a photo from the Downloads folder. Please merge this fix. +1 ---------------------------------------------------------------- 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 > Camera plugin crashes using getPicture on some files > ---------------------------------------------------- > > Key: CB-14097 > URL: https://issues.apache.org/jira/browse/CB-14097 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Affects Versions: Master > Environment: At least tested on: > Cordova 7.1.0 > Camera 4.0.3 > But the code is the same in master branch. > Reporter: B. van Mensvoort > Priority: Critical > Fix For: Master > > Attachments: logcat.txt > > > My app uses navigator.camera.getPicture to select files from a library. > After selecting some files, the app crashes. Some files go well and it do= esn't seem to happen on all devices. > The crash happens in the FileHelper.java file and it the exception is: > {{java.lang.NumberFormatException: For input string: "raw:/storage/emulat= ed/0/Download/filename.PDF"}} > It seems to be caused the way files are saved on the device. The urls of = the files are different. When resaving the file, the URL can be as expected= . > Expected URL: > {{content://com.android.providers.downloads.documents/document/1111}} > Error URL: > {{content://com.android.providers.downloads.documents/document/raw%3A%2Fs= torage%2Femulated%2F0%2FDownload%2Ffilename.pdf}} > The fix is the same as:=C2=A0[https://github.com/severianremi/uCrop/commi= t/9e2bb067631ac3bd3817c0fb55c51db3d61edfe0] > =C2=A0 -- 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