cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Kotikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10998) File-Transfer doesn't start after ~5-10 cancelled downloads
Date Fri, 19 Aug 2016 14:11:20 GMT

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

Vladimir Kotikov commented on CB-10998:
---------------------------------------

Hi, [~ATGardner]. I've tried to reproduce the problem w/ your code but it works for me. Please
clarify a bit some questions:

1. ??If I cancel the download after the didReceiveResponse starts (but before it is finished)??
- how have you achieved that? Are you just setting a breakpoint there and then cancel download
from UI?
2. What happens when you calling {{download}} after 10th  attempt? Does it trigger any callbacks?

3. Does it trigger error callback when you cancelling last successful download?
4. Is the file available on device after you cancelled download? 

Also it'd be great if you could check you simulator/device logs to see if something is logged
there.

> File-Transfer doesn't start after ~5-10 cancelled downloads
> -----------------------------------------------------------
>
>                 Key: CB-10998
>                 URL: https://issues.apache.org/jira/browse/CB-10998
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 1.5.0
>         Environment: iOS 9
>            Reporter: Noam Gal
>              Labels: triaged
>
> I created a sample project, minimally modifying the HelloCordova project with a Download
file button.
> The File Transfer plugin is trying to download a single file through https (from my public
dropbox folder. Any other file will do, as long as it is behind https).
> I added NSLog calls in the didReceiveResponse and in the willSendRequestForAuthenticationChallange
callbacks.
> If I cancel the download after the didReceiveResponse starts (but before it is finished),
and then try to download again and again, at ~ the 10th attempt the download just never starts
(I used fiddler, and at that stage no request is coming out).
> When I tried it in a different host, it was consistently after the 6th download attempt/cancel.
> My sample project is located at https://github.com/ATGardner/cordova-FileTransfer-test
> just run "cordova prepare" (and maybe add the NSLog calls in the CDVFileTransfer.m file)



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

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


Mime
View raw message