You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "DotNetWise (JIRA)" <ji...@apache.org> on 2014/02/05 16:18:10 UTC

[jira] [Created] (CB-5975) You cannot select a pdf / doc etc file from "gallery"

DotNetWise created CB-5975:
------------------------------

             Summary: You cannot select a pdf / doc etc file from "gallery"
                 Key: CB-5975
                 URL: https://issues.apache.org/jira/browse/CB-5975
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, Plugin File, Plugin File Transfer
    Affects Versions: 3.3.0, 3.2.0, 3.1.0, 3.0.0
         Environment: Android
            Reporter: DotNetWise


I have reported this bug twice as a pull request on github but no one seems to look at that!! Shame on you!

If you select a file from the recent downloaded files (via Select From Library) you get a silent error

The reported url of the file to be resolved is content://com.android.providers.downloads.documents/document/629

The error or success callback are never being called but when looking with adb logcat I'm getting a NullPointerReference exception

W/System.err( 5278): java.lang.NullPointerException
W/System.err( 5278):    at java.io.File.fixSlashes(File.java:185)
W/System.err( 5278):    at java.io.File.<init>(File.java:134)
W/System.err( 5278):    at org.apache.cordova.file.FileUtils.resolveLocalFileSystemURI(FileUtils.java:392)
W/System.err( 5278):    at org.apache.cordova.file.FileUtils.access$200(FileUtils.java:53)
W/System.err( 5278):    at org.apache.cordova.file.FileUtils$12.run(FileUtils.java:203)
W/System.err( 5278):    at org.apache.cordova.file.FileUtils$23.run(FileUtils.java:325)
W/System.err( 5278):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err( 5278):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/System.err( 5278):    at java.lang.Thread.run(Thread.java:841)


https://github.com/apache/cordova-plugin-file/pulls/dotnetwise

https://github.com/dotnetwise/cordova-plugin-file/commit/739d2fd5db8643acb92f186bd3a8a89b5289ead5



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)