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 C26C0200B50 for ; Thu, 14 Jul 2016 16:46:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C18AE160A60; Thu, 14 Jul 2016 14:46:22 +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 1E795160A63 for ; Thu, 14 Jul 2016 16:46:21 +0200 (CEST) Received: (qmail 19844 invoked by uid 500); 14 Jul 2016 14:46:20 -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 19329 invoked by uid 99); 14 Jul 2016 14:46:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 14:46:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 92CA12C02A7 for ; Thu, 14 Jul 2016 14:46:20 +0000 (UTC) Date: Thu, 14 Jul 2016 14:46:20 +0000 (UTC) From: "Vladimir Kotikov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-11368) resolveLocalFileSystemURL cannot handle url returned by contacts plugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 14:46:22 -0000 [ https://issues.apache.org/jira/browse/CB-11368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Kotikov updated CB-11368: ---------------------------------- Description: navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}}, which cannot be resolved by resolveLocalFileSystemURL with {{FileError code: 1000}}. I inspect code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot return correct value. The problem is, that cursor doesn't have a column named _size. I have given permission of File and Contacts. (was: navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}}, which cannot be resolved by resolveLocalFileSystemURL with {{FileError {code: 1000}}}. I inspect code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot return correct value. The problem is, that cursor doesn't have a column named _size. I have given permission of File and Contacts.) > resolveLocalFileSystemURL cannot handle url returned by contacts plugin > ----------------------------------------------------------------------- > > Key: CB-11368 > URL: https://issues.apache.org/jira/browse/CB-11368 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File > Reporter: zhuisui > Labels: triaged > > navigator.contacts.pickContact returns photo url like {{content://com.android.contacts/contacts/1/photo}}, which cannot be resolved by resolveLocalFileSystemURL with {{FileError code: 1000}}. I inspect code in the {{ContentFileSystem.java}}, and find the method {{resourceSizeForCursor}} cannot return correct value. The problem is, that cursor doesn't have a column named _size. I have given permission of File and Contacts. -- 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