cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Normington (JIRA)" <>
Subject [jira] [Created] (CB-6243) FileEntry.toURL() "cdvfile://localhost/persistent/file://"
Date Thu, 13 Mar 2014 16:25:46 GMT
David Normington created CB-6243:

             Summary: FileEntry.toURL() "cdvfile://localhost/persistent/file://"
                 Key: CB-6243
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File
    Affects Versions: 3.4.0
         Environment: Android 4.4 using Genymotion emulator
            Reporter: David Normington

When I run something like this:

function(entry) {
    entry.file(fileSuccess, fail);
The logcat shows this result:
I/chromium( 3022): [INFO:CONSOLE(28)] "file:///storage/emulated/0/DCIM/Camera/1394726081689.jpg",
source: file:///android_asset/www/js/pdf.js (28)
I/chromium( 3022): [INFO:CONSOLE(29)] "cdvfile://localhost/temporary/file://storage/emulated/0/DCIM/Camera/1394726081689.jpg",
source: file:///android_asset/www/js/pdf.js (29)
W/System.err( 2928): File: cdvfile://localhost/persistent/file://storage/emulated/0/DCIM/Camera/1394726081689.jpg
does not exist.
W/System.err( 2928):    at org.apache.cordova.file.FileUtils.getFileMetadata(
W/System.err( 2928):    at org.apache.cordova.file.FileUtils.access$400(
W/System.err( 2928):    at org.apache.cordova.file.FileUtils$
W/System.err( 2928):    at org.apache.cordova.file.FileUtils$
W/System.err( 2928):    at java.util.concurrent.ThreadPoolExecutor.runWorker(
W/System.err( 2928):    at java.util.concurrent.ThreadPoolExecutor$
W/System.err( 2928):    at
As you can see the second console.log has the cdvfile protocol with the file protocol appended
to the end. I'm sure this is causing the following error.

This message was sent by Atlassian JIRA

View raw message