View Issue Details

IDProjectCategoryView StatusLast Update
0002080gnunet-gtkgnunet-fs-gtkpublic2012-02-28 11:06
ReporterLRN Assigned ToChristian Grothoff  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.2Fixed in Version0.9.2 
Summary0002080: Improper tree representation when doing recursive download of complex directories
DescriptionThe tree displayed in orphans tab (why there, if we still have the initial directory search result on a search tab?) is disjoined.
Steps To Reproduce1) Search for "share"
2) Download the directory you find recursively (save as "share.gnd").

Results:
In search tab "share" gets a name - "share.gnd", with absolute directory name, progress=100. However, rightclicking on it brings the menu with "Abort download", and it won't be cleaned by the "Cleanup" button
In orphans tab a number of entries is added, some are for files, other are for .gnd files (directories). They do not form a hierarchy. For example, if we have this tree:
dir1/
-dir2/
--dir21/
---file211
--dir22/
---file221
--file21
--file22
-dir3/
-dir4/
--file41
-file1
-file2

Then the orphans tab will contain, if we download to c:\foobar\
c:\foobar\dir2.gnd (green)
-dir21 (white)
-dir22 (white)
c:\foobar\dir3.gnd (green)
c:\foobar\dir4.gnd (green)
-file41 (white)
c:\foobar\dir21.gnd (green)
-file211 (white)
c:\foobar\dir22.gnd (green)
-file221 (white)
c:\foobar\file1 (green)
c:\foobar\file2 (green)
c:\foobar\file41 (green)
c:\foobar\file211 (green)
c:\foobar\file221 (green)
in seemingly random order

(dir1.gnd will remain in search tab, unexpanded)
(white and green refer to the color of the entry; white ones stay at 0%)
TagsNo tags attached.

Relationships

related to 0002137 closedChristian Grothoff "clean" button in URI-tab only cleans one result at a time 

Activities

Christian Grothoff

2012-01-18 20:32

manager   ~0005287

LRN, didn't one of your recent patches fix this one?

LRN

2012-01-18 21:02

developer   ~0005288

No, i've never addressed this particular issue.

Christian Grothoff

2012-02-04 22:25

manager   ~0005425

Ok, when I do this, I see two things:
1) the downloaded files on disk DO have the proper hierarchy
2) the GtkTreeView shows the results as a FLAT result list
   (no hierarchy), and instead of putting them under the search result,
   they appear in the URI-tab instead immediately; only the top-level
   results *also* appear in under the search result (but there without
   the "completed" attribution)
3) I got a crash when I then clicked on the "clean" button in the
   URI tab a few times

Christian Grothoff

2012-02-04 22:26

manager   ~0005426

My interpretation so far: maybe in recursive-download, libgnunetfs doesn't cleanly initialize the parent links (especially maybe if the directory contains the results as embedded data), which then causes downloads to be started from "nowhere". Not sure about the crash yet.

Christian Grothoff

2012-02-04 23:27

manager   ~0005427

libgnunetfs was not too blame, gnunet-fs-gtk simply added the entries in directories too late: upon completed, instead upon progress with completed==size. This way (under certain circumstances), we'd get a child download started before the parent had the entry setup. Fixed in SVN 19693.

However, the "clean" crash is still there.

Christian Grothoff

2012-02-05 14:29

manager   ~0005432

Should be fixed in SVN 19697. (need to test)

Christian Grothoff

2012-02-05 17:06

manager   ~0005436

Works fine in 19700.

Issue History

Date Modified Username Field Change
2012-01-17 17:35 LRN New Issue
2012-01-17 19:54 Christian Grothoff Priority low => high
2012-01-17 19:54 Christian Grothoff Severity trivial => major
2012-01-17 19:54 Christian Grothoff Status new => acknowledged
2012-01-17 19:54 Christian Grothoff Target Version => 0.9.2
2012-01-18 20:32 Christian Grothoff Note Added: 0005287
2012-01-18 21:02 LRN Note Added: 0005288
2012-01-31 13:10 Christian Grothoff Assigned To => Christian Grothoff
2012-01-31 13:10 Christian Grothoff Status acknowledged => assigned
2012-02-04 22:25 Christian Grothoff Note Added: 0005425
2012-02-04 22:26 Christian Grothoff Note Added: 0005426
2012-02-04 23:27 Christian Grothoff Note Added: 0005427
2012-02-04 23:28 Christian Grothoff Relationship added related to 0002137
2012-02-05 14:29 Christian Grothoff Note Added: 0005432
2012-02-05 17:06 Christian Grothoff Note Added: 0005436
2012-02-05 17:06 Christian Grothoff Status assigned => resolved
2012-02-05 17:06 Christian Grothoff Fixed in Version => 0.9.2
2012-02-05 17:06 Christian Grothoff Resolution open => fixed
2012-02-28 11:06 Christian Grothoff Status resolved => closed