Bug 455047 - Renaming folder with different case is detected as a different album
Summary: Renaming folder with different case is detected as a different album
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 7.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-08 18:19 UTC by sunphoenix@hotmail.com
Modified: 2023-05-13 19:08 UTC (History)
2 users (show)

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


Attachments

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