Bug 455047

Summary: Renaming folder with different case is detected as a different album
Product: [Applications] digikam Reporter: sunphoenix <sunphoenix>
Component: Albums-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.7.0
Sentry Crash Report:

Description sunphoenix@hotmail.com 2022-06-08 18:19:40 UTC
SUMMARY
When I rename a folder and just change the case, DigiKam detects it as a different new folder/album.

STEPS TO REPRODUCE
1. Make sure folder xyz is in present as an album.
2. In file explorer, rename folder by changing letter case only.
3. DigiKam automatically detect as a new folder and will also find them as duplicates if you search.

OBSERVED RESULT
There are multiple albums that point to same real location on disk.

EXPECTED RESULT
Only one folder/album. No duplicate detected.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Maik Qualmann 2022-06-08 18:28:31 UTC
Are you using MySQL/MariaDB? This has already been fixed in current digiKam versions. But, we don't do an automatic database update. You need to migrate your database to a new database using the digiKam Migration Tool.

Maik
Comment 2 Maik Qualmann 2022-06-08 18:49:44 UTC
Yes I can reproduce it, it's another cause. if the change is not at the beginning, Windows manages different upper/lower cases.

Maik
Comment 3 Maik Qualmann 2022-06-09 05:44:43 UTC
Git commit 6720e309b8fdcc2b4bd8c37eefef5474f1698d0c by Maik Qualmann.
Committed on 09/06/2022 at 05:43.
Pushed by mqualmann into branch 'qt5-maintenance'.

remove a speed optimization that checks the folder date
A renamed folder does not have a changed modification date.
FIXED-IN: 7.7.0

M  +2    -1    NEWS
M  +1    -4    core/libs/database/collection/collectionscanner_scan.cpp

https://invent.kde.org/graphics/digikam/commit/6720e309b8fdcc2b4bd8c37eefef5474f1698d0c