Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 1523 [details]
Device iOS 5.0.1
Step to reproduce:
1 - Use the repro app to download a file.
2 - Set the url in the repro (WebClient_BugViewController.cs -> OnButtonTouchUpInside method)
3 - Start the app. Clic on the button and wait for the download to start.
4 - Anytime before the download finishes, put the device to sleep (with the top-right hardware button).
5 - Wait some time (3-5 seconds), then wake up the device.
-> In LocalFileDownloader.cs : HandleClientDownloadFileCompleted is called even if the file is partially downloaded. AsyncCompletedEventArgs parameter has no error and is not cancelled. The application will think the downloaded file is completed, but it's not.
This might be related to bug #2298.
Yay, just downloaded a 4,7dvd in 5 seconds.
This is the url I used: http://suse.bifi.unizar.es/opensuse/distribution/12.1/iso/openSUSE-12.1-DVD-i586.iso
Gonzalo, this looks like your area of expertise :)
This is not related to bug #2298 (I added a comment there).
I will take a look.
Our workaround is to registered to DownloadProgressChanged and keep the ProgressPercentage. When we receive DownloadFileCompleted, if ProgressPercentage < 100 then an error occurred an we don't use the downloaded file.
According to the MSND documentation, this technique will not work with ftp, but in our case, we use http.
Fixed; mono/master commit c31a58b.
Note that this only works when the server set the Content-Length header.
Today I have checked this issue with following builds:
X.S 4.0.10(build 5)
We have run the attached project on device and click on 'DownloadFile' button. After clicking on this button no progress appears for downloading also in application Output we are getting " WebClient_Bug[933:6e07]HandleClientDownloadFileCompleted". Please let us know how would we know about downloading start? so theat we can move further steps to verify this issue.
Today we checked this issue with following build:
Mac Lion 10.7.4
X.S 4.0.10(build 7)
And we have used attached project and used the Rolf's url. After clicking on Download button when download get started and we press the upper right button from device and then after 3-4 seconds wake up the device by pressing upper right button from device, It display Downloads Done on device and HandleClientDownloadFileCompleted is *not* called.
iPhone 4 version 7.0
iPod Touch 6.0
Changing the status to verified.