Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6010

CDVAssetLibraryFilesystem does not have URLforFilesystemPath

    XMLWordPrintableJSON

Details

    Description

      when i try to FileTransfer.download(...) 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.

      Attachments

        Activity

          People

            iclelland Ian Clelland
            amenthes Claudius Coenen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: