cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Clelland (JIRA)" <>
Subject [jira] [Commented] (CB-6351) setMetadata fails silently
Date Wed, 26 Mar 2014 17:19:15 GMT


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:

exec(successCallback, errorCallback, "File", "setMetadata", [this.filesystem.__format__(this.fullPath),

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

> setMetadata fails silently
> --------------------------
>                 Key: CB-6351
>                 URL:
>             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

View raw message