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

You cannot select a pdf / doc etc file from "gallery"

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            iclelland Ian Clelland
            dotnetwise DotNetWise
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified