Bug 206866

Summary: Moving / renaming files creates duplicates in the ThumbsDB
Product: [Applications] digikam Reporter: Andi Clemens <andi.clemens>
Component: Thumbs-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 1.6.0

Description Andi Clemens 2009-09-09 15:12:49 UTC
Version:           1.0.0-beta5 (using 4.3.1 (KDE 4.3.1), Arch Linux)
Compiler:          gcc
OS:                Linux (i686) release 2.6.30-ARCH

When I rename an album or move it to another location, the thumbnails don't get updated in the database.
This leads to problems, for example when you call "Rebuild Thumbnails" in "Scan" mode.
It will always recreate the thumbnails for the moved / renamed files, regardless of how often you start the scan.
The thumbs have an unique hash in the database. We only seem to check for the existence of such a hash, regardless of the path that is also associated with this unique hash. I think we need to update the path to avoid this problem.
Sometimes I even don't see any thumbnails after a move, because the old path is still written into the database.
Comment 1 Marcel Wiesweg 2009-09-28 21:48:41 UTC
The main problem here is thumbnail rebuilding dialog? Does the last sentence you wrote also refer to this dialog?
Comment 2 Andi Clemens 2009-10-08 01:25:13 UTC
The main problem is that thumbnail entries are duplicated in the database itself, when using the "Rebuild Thumbnails" dialog...
Comment 3 Andi Clemens 2010-11-14 19:35:36 UTC
I actually fixed this issue, but I'm not happy with it. We need to add some update mechanism that works better than the "quickfix" I added.
Anyway this bug can be closed.