Bug 458344

Summary: Inconsistencies between Collections and albums
Product: [Applications] digikam Reporter: patrick.grousset
Component: Database-SqliteAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 7.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 8.0.0
Attachments: the collection list and the album list

Description patrick.grousset 2022-08-26 14:04:22 UTC
Created attachment 151616 [details]
the collection list and the album list

Hello, 
Yesterday, I added 3 collections (Photos Numeriques, Photos Communes and Photos scannées). It works fine.
Today, this afternoon when I open digiKam, in the album list there is only Photos Communes. Previously this morning there were the 3 albums.

What's going on?

SOFTWARE/OS VERSIONS
Windows:
Comment 1 caulier.gilles 2022-08-26 14:31:08 UTC
Install DebugView tool from Microsoft, run it before to start digiKam.

https://www.digikam.org/contribute/

Run digiKam as usual. All debug traces will be captured by DebugView. Post the trace here.

Gilles Caulier
Comment 2 Maik Qualmann 2022-08-26 20:37:03 UTC
You don't need to set the environment variable, you can also enable internal debugging in the digiKam settings under Miscellaneous-> System and restart digiKam.

But there is only one explanation for the behavior, the folders C:\Users\patri\Pictures\* no longer exist or digiKam has no read permission. The albums were removed from the database by digiKam because they are local collections, which are always expected to be available.

I suspect no bug in digiKam.

Maik
Comment 3 Maik Qualmann 2022-08-26 21:27:13 UTC
Git commit 87ccab055cd17cae73075c8b3d5907c48d38c3a4 by Maik Qualmann.
Committed on 26/08/2022 at 21:24.
Pushed by mqualmann into branch 'master'.

additionally check for a local/external collection whether the full path is available.
This prevents data loss in the database.
Related: bug 444757, bug 371535
FIXED-IN: 8.0.0

M  +4    -3    NEWS
M  +1    -1    core/libs/database/collection/collectionmanager_location.cpp

https://invent.kde.org/graphics/digikam/commit/87ccab055cd17cae73075c8b3d5907c48d38c3a4