joeasher / gdocbackup

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

Folder dictionary: duplicated item #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported from some users:

1/13/2011 8:31:01 AM - 000 > 
************************************************************
1/13/2011 8:31:01 AM - 000 > ****** START BACKUP PROCESS ******
1/13/2011 8:31:01 AM - 000 > Setup connection & get doc list
1/13/2011 8:31:25 AM - 000 > GLOBAL-ERROR: An item with the same key has 
already been added.
1/13/2011 8:31:25 AM - -001 > ############### EXCEPTION ###############
1/13/2011 8:31:26 AM - -001 > System.ArgumentException: An item with the same 
key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, 
Boolean add)
at GDocBackupLib.Backup.BuildFolders(Document parentDir, List`1 docs, String 
currentPath)
at GDocBackupLib.Backup.ExecInternal()
at GDocBackupLib.Backup.Exec()
1/13/2011 8:31:26 AM - -001 > #########################################

My notes: 
 - comes from Backup.cs line 387 ?
 - I'm not able to reproduce it
 - WorkAround : add a check like line 407 "if (!_folderDict.ContainsKey(doc.Self))"

Original issue reported on code.google.com by fht...@gmail.com on 14 Jan 2011 at 8:03

GoogleCodeExporter commented 9 years ago

Original comment by fht...@gmail.com on 27 Jan 2011 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by fht...@gmail.com on 28 Jan 2011 at 8:29

GoogleCodeExporter commented 9 years ago

Original comment by fht...@gmail.com on 27 Feb 2011 at 5:49