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

FileTransfer throws native Exception. Android 4.4.2

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When downloading non existing file, and when the server returns
      "http_status": 404
      this plugin throws the following native exception:

      02-08 12:51:13.231: E/FileTransfer(27870): java.io.FileNotFoundException: http://myServerAddres/files/photo/92932ce7-9f0a-4d27-a266-9d73eb02a464/square_image.jpg
      02-08 12:51:13.231: E/FileTransfer(27870): at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:186)
      02-08 12:51:13.231: E/FileTransfer(27870): at org.apache.cordova.filetransfer.FileTransfer.getInputStream(FileTransfer.java:592)
      02-08 12:51:13.231: E/FileTransfer(27870): at org.apache.cordova.filetransfer.FileTransfer.access$500(FileTransfer.java:69)
      02-08 12:51:13.231: E/FileTransfer(27870): at org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:882)
      02-08 12:51:13.231: E/FileTransfer(27870): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      02-08 12:51:13.231: E/FileTransfer(27870): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      02-08 12:51:13.231: E/FileTransfer(27870): at java.lang.Thread.run(Thread.java:841)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ironbone Iron Bone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment