From issues-return-23083-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Wed Mar 26 17:19:18 2014 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 3C80510230 for ; Wed, 26 Mar 2014 17:19:18 +0000 (UTC) Received: (qmail 33940 invoked by uid 500); 26 Mar 2014 17:19:17 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33694 invoked by uid 500); 26 Mar 2014 17:19:16 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 33667 invoked by uid 99); 26 Mar 2014 17:19:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 17:19:15 +0000 Date: Wed, 26 Mar 2014 17:19:15 +0000 (UTC) From: "Ian Clelland (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6351) setMetadata fails silently 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-6351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948163#comment-13948163 ] Ian Clelland commented on CB-6351: ---------------------------------- Have you recently updated your Cordova project? The current version of Entry.js in the File plugin uses this line: {code} exec(successCallback, errorCallback, "File", "setMetadata", [this.filesystem.__format__(this.fullPath), metadataObject]); {code} which is functionally equivalent to using {{.toURL()}}. It seems like you might be using new native code with old JavaScript. This has come up a couple of times with people upgrading their projects / plugins. I suspect it is a plugin upgrade bug. > setMetadata fails silently > -------------------------- > > Key: CB-6351 > URL: https://issues.apache.org/jira/browse/CB-6351 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File > Affects Versions: 3.4.0 > Reporter: Robin Zeggelaar > Assignee: Ian Clelland > Labels: setMetadata > > In Cordova 3.0.4 the setMetadata call on iOS fails silently. Android does not seem to have this issue. > On the javascript side the following call is made (Entry.js): > exec(successCallback, errorCallback, "File", "setMetadata", [this.fullPath, metadataObject]); > This fails silently on the native end. My callbacks are not invoked. I fixed this by changing this.fullPath to this.toURL(), conform the changes to the File plugin. After this change the callbacks did get invoked properly. > Could you take a look at this and fix it in a future release? -- This message was sent by Atlassian JIRA (v6.2#6252)