incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dewang Shah (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-912) FileTransfer.download does not fire error callback when server is unavailable
Date Thu, 14 Jun 2012 09:03:42 GMT

    [ https://issues.apache.org/jira/browse/CB-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294911#comment-13294911
] 

Dewang Shah edited comment on CB-912 at 6/14/12 9:02 AM:
---------------------------------------------------------

Project with reproduction scenario.

It is really strange that you are getting the error callback. I've attached a sample project
which for me just sits on the download function and never invokes the error callback.

I've tried this on my device (HTC Sensation running Android 2.3.4) and running on a WiFi connection.
                
      was (Author: dewang):
    Project with reproduction scenario.

It is really strange that you are getting the error callback. I've attached a sample project
which for me just sits on the download function and never invokes the error callback
                  
> FileTransfer.download does not fire error callback when server is unavailable
> -----------------------------------------------------------------------------
>
>                 Key: CB-912
>                 URL: https://issues.apache.org/jira/browse/CB-912
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>         Environment: Android/iOS
> Others untested
>            Reporter: Dewang Shah
>         Attachments: cb-915-repro.tar.gz
>
>
> The download method on FileTransfer never fires the error callback if there is a network
connection but the download URL is not accessible. It simply waits forever and does not return.
> Reproduction:
>         var fileTransfer = new FileTransfer();
>         fileTransfer.download('http://nosuchserver/nosuchfile.png', fullPath, function(entry)
{
>             console.log("download complete: " + entry.fullPath);
>         }, function(error) {
>             console.log("download error source " + error.source);
>             console.log("download error target " + error.target);
>             console.log("download error code" + error.code);
>         });

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message