[jira] [Updated] (CB-9970) resolveLocalFileSystemURL and fileTransfer.download sometimes failed to return callbacks

2015-11-09 Thread Danny Song (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny Song updated CB-9970:
---
Description: 
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.

Note:  The fileTransfer.download plugin also has the same symptom sometimes. 
Reproduce steps are as same as the above.

  was:
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.



> 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.
> Note:  The fileTransfer.download plugin also has the same symptom sometimes. 
> Reproduce steps are as same as the above.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9970) resolveLocalFileSystemURL and fileTransfer.download sometimes failed to return callbacks

2015-11-09 Thread Danny Song (JIRA)
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: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org