ed33 / rcsjta

Automatically exported from code.google.com/p/rcsjta
1 stars 0 forks source link

[FileTransfer] Pause / Resume #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
At terminating side, we can not pause the downloading of the transferred file.

In the HttpDownloadManager class, the 'writeHttpContentToFile' method does not 
throw any exception when the HttpDownloadManager is paused.
So the file is considered as transferred and the RI application is trying to 
display this file.

I think that this issue has been introduced by the revision
https://code.google.com/p/rcsjta/source/detail?r=25e4bd6018fae92b4b86fb885c3efbb
5ea2eda95&name=integration 
(The getFile() method was returning false when the manager was paused)

See logcat file in attachments

Original issue reported on code.google.com by fgicquel...@gmail.com on 9 Jun 2015 at 9:29

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed by Change-Id: I6adfa71fbd462aebecc0527e4a5fe591bb8bef28
Log message

Regression in pause download feature found related to exception handling

In the HttpDownloadManager class, the 'writeHttpContentToFile' method
does not throw any exception when the HttpDownloadManager is paused.
So the file is considered as transferred and the RI application is
trying to display this file.

Regression due to : Ife15c0ab19f2ddd1293158ef0f8f90cdd680dfcf

Original comment by lemordan...@gmail.com on 11 Jun 2015 at 4:51