Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Android 4.4.2
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)