Bug 458344 - Inconsistencies between Collections and albums
Summary: Inconsistencies between Collections and albums
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 7.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-26 14:04 UTC by patrick.grousset
Modified: 2022-08-26 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments
the collection list and the album list (292.93 KB, image/png)
2022-08-26 14:04 UTC, patrick.grousset
Details

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