ardar / flowlib

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

Protocol_ChangeDownloadItem event has wrong trans.Source.UserID #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to download anything in nmdc
2. on Protocol_ChangeDownloadItem you should find DownloadItem from 
download manager, but you can not because trans.Source.UserID is actually 
StoreID instead of ID

What is the expected output? What do you see instead?
I think it should be ID or how I should get DownloadItem in this case?

What version of the product are you using? ~~(Do not write latest)~~
SVN r532

On what operating system?
Windows 7 7100

Possible the issue is in "get" section of TransferRequest.Source property

Original issue reported on code.google.com by hackw...@gmail.com on 16 Sep 2009 at 5:32

GoogleCodeExporter commented 8 years ago
Actually no. UserId on Source object should be StoredID. This way you are able 
to
store a download item and the sources for that on hdd.
Then later, a week or what ever, you can continue downloading the file from your
known sources.
IF you would use UserId you would need to research for alternative sources 
every time
you loaded DownloadItems from hdd.

BUT there are problems with the trans.Source object in current svn version.

It has been fixed locally but because of some memory problems and some other
unfinished code i havnt been able to update the svn version.

Original comment by blomman84 on 7 Nov 2009 at 11:22