Bug 206866 - Moving / renaming files creates duplicates in the ThumbsDB
Summary: Moving / renaming files creates duplicates in the ThumbsDB
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Video (show other bugs)
Version: 1.0.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-09 15:12 UTC by Andi Clemens
Modified: 2017-07-27 10:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 1.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.