cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Selim Hernandez (JIRA)" <>
Subject [jira] [Commented] (CB-6010) CDVAssetLibraryFilesystem does not have URLforFilesystemPath
Date Thu, 13 Feb 2014 09:49:20 GMT


Selim Hernandez commented on CB-6010:


I've come across the exact same problem so I've added the test you mentioned above.

The problem is that the method still fails when it was working in the
previous version...

2014-02-13 10:46:18.348 MTP[1122:60b] File Transfer Error: Could not create target file


> CDVAssetLibraryFilesystem does not have URLforFilesystemPath
> ------------------------------------------------------------
>                 Key: CB-6010
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File, Plugin File Transfer
>    Affects Versions: 3.3.0
>         Environment: ios
>            Reporter: Claudius Coenen
>            Assignee: Ian Clelland
> when i try to {{}} a file (code itself used to work in 2.7)
my app now crashes.
> Step-Debugging revealed, that in {{CDVFile#fileSystemURLforLocalPath}} _(Line 267)_ all
available filesystems are tested. One of those appears to be a {{CDVAssetLibraryFilesystem}}
- which does not implement {{URLforFilesystemPath}}
> I added a dummy {{URLforFilesystemPath}} wich just returns {{nil}}. This got me around
the crash, but now i'm stuck with a {{FILE_NOT_FOUND_ERR}}, which is probably my own responsibility.
But the aforementioned crash took me a while to find.

This message was sent by Atlassian JIRA

View raw message