Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C9189200CAD for ; Wed, 28 Jun 2017 17:11:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C7A86160BF7; Wed, 28 Jun 2017 15:11:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 216EA160BFA for ; Wed, 28 Jun 2017 17:11:06 +0200 (CEST) Received: (qmail 99222 invoked by uid 500); 28 Jun 2017 15:11:06 -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 98965 invoked by uid 99); 28 Jun 2017 15:11:05 -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; Wed, 28 Jun 2017 15:11:05 +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 4103A1A0681 for ; Wed, 28 Jun 2017 15:11:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RsbPYzGyKr3K for ; Wed, 28 Jun 2017 15:11:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 928DC6106C for ; Wed, 28 Jun 2017 15:11: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 DEDD9E0DD8 for ; Wed, 28 Jun 2017 15:11:01 +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 637CC24161 for ; Wed, 28 Jun 2017 15:11:01 +0000 (UTC) Date: Wed, 28 Jun 2017 15:11:01 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12964) When Pictures folder does not exist, plugin cannot take a photo. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 28 Jun 2017 15:11:07 -0000 [ https://issues.apache.org/jira/browse/CB-12964?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D160666= 54#comment-16066654 ]=20 ASF GitHub Bot commented on CB-12964: ------------------------------------- GitHub user joseluisballesterosdelval opened a pull request: https://github.com/apache/cordova-plugin-camera/pull/273 CB-12964: (android) Fix of bug when Pictures folder did not exist. If someone had removed Pictures folder in android, plugin failed trying= to move there the new photo. This happened because plugin did not check th= e existence of this folder, and if not, it did not complete the folder tree= . =20 =20 ### Platforms affected Android =20 ### What does this PR do? It makes plugin to create Pictures folder, if it has enough permissions= (if not, an exception will be thrown and caught in the usual way), because= until this time, in case of user had deleted this folder, the plugin faile= d. =20 ### What testing has been done on this change? I have tested that in an Android application using this plugin, when Pi= ctures folder was deleted, the plugin works normally after change and not b= efore. =20 ### Checklist - [X] [Reported an issue](http://cordova.apache.org/contribute/issues.h= tml) in the JIRA database - [X] Commit message follows the format: "CB-3232: (android) Fix bug wi= th resolving file paths", where CB-xxxx is the JIRA ID & "android" is the p= latform affected. - [X] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/joseluisballesterosdelval/cordova-plugin-= camera master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-camera/pull/273.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #273 =20 ---- commit edda4657522a1ae5fd611cf23a99140b42c9251e Author: Jos=C3=A9 Luis Ballesteros del Val Date: 2017-06-28T14:38:45Z CB-12964: (android) Fix of bug when Pictures folder did not exist. =20 If someone had removed Pictures folder in android, plugin failed trying= to move there the new photo. This happened because plugin did not check th= e existence of this folder, and if not, it did not complete the folder tree= . ---- > When Pictures folder does not exist, plugin cannot take a photo. > ---------------------------------------------------------------- > > Key: CB-12964 > URL: https://issues.apache.org/jira/browse/CB-12964 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Environment: Android > Reporter: Jos=C3=A9 Luis Ballesteros del Val > Original Estimate: 1h > Remaining Estimate: 1h > > If someone has removed Pictures folder in android, plugin fails trying to= move there the new photo. This happens because plugin does not check the e= xistence of this folder, and if not, it does not complete the folder tree. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org