Danny Song created CB-9970:
------------------------------
Summary: resolveLocalFileSystemURL and fileTransfer.download
sometimes failed to return callbacks
Key: CB-9970
URL: https://issues.apache.org/jira/browse/CB-9970
Project: Apache Cordova
Issue Type: Bug
Components: CordovaJS
Affects Versions: 3.5.0
Environment: Dell Tablet Venue 8 8740 running on Android 4.4.4.
Reporter: Danny Song
Priority: Blocker
resolveLocalFileSystemURL should return either success or fail callbacks.
However, we noticed sometimes this function fails to callback. The function was
called but with no callback was returned.
Reproduce Steps:
1. Pass in a file url that doesn't have the real file exist
2. Call the function:
resolveLocalFileSystemURL(fullPathToFile,
function (result) {
logger.info("resolveLocalFileSystemURL successful
callback");
},
function (error) {
logger.error("resolveLocalFileSystemURL error callback");
});
3. Since no file exists in the specified path "fullPathToFile", the function
should have the error callback.
Expected Result: error callback is called.
Actual Result: no callback. But the problem is not reproducible every time. I
tried 7-10 times with the same file url, I could only reproduce 1-2 times.
Note: The problem is only noticed on the Dell Tablet Venue 8 8740 running on
Android 4.4.4. The code has been tested on the other Samsung and Nexus 10
devices running on 4.4.4 and 4.4.2, but couldn't be reproducible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]