Bug 371535 - Albums from ext hdd are removed when digikam starts up if the external HDD is not plugged in
Summary: Albums from ext hdd are removed when digikam starts up if the external HDD is...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (show other bugs)
Version: 5.2.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-23 16:38 UTC by vxd
Modified: 2022-08-26 21:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vxd 2016-10-23 16:38:12 UTC
My collection is on the external hard drive. All the photos have been imported. I can the albums in the DB.

- When I close digikam, 
- unplug the HDD
-load up digikam again 
- the albums are now all gone.

I have doubled checked in the DB and all the albums from the external hdd are gone.
The images are still there but reference null for the album.

Is this a bug or an intended feature?

I would assume if the hdd is not plugged in it will still keep the reference to the albums even if they cannot be found because people wouldn't have their external hdd plugged in all the time.


Reproducible: Always

Steps to Reproduce:
1. Add external hdd as a collection
2. Import complete
3. Close Digikam
4. Disconnect HDD
5. Open Digikam
6. All albums from external hdd are gone.
7. Also missing from mysql DB

Actual Results:  
6. All albums from external hdd are gone.

Expected Results:  
Keep the albums in the DB even if the external hdd is unplugged.
Comment 1 Maik Qualmann 2016-10-23 16:45:31 UTC
Have you added the album as a removable collection?

Maik
Comment 2 vxd 2016-10-23 20:16:19 UTC
Yes, the collection has a type: 2 and in the preference it's marked as removable.
Comment 3 Maik Qualmann 2016-10-24 17:23:12 UTC
Not to reproduce on Linux. That external HDD album will persist, and the thumbnails are available. Gilles can you reproduce it under OS X?

Maik
Comment 4 caulier.gilles 2016-10-24 19:41:07 UTC
Ye, reproducible here. Problem come from KF5::Solid APi which is uncomplete for OSX...

This problem have been already reported on bugzilla.

Gilles Caulier
Comment 5 caulier.gilles 2016-10-24 19:42:29 UTC
See https://bugs.kde.org/show_bug.cgi?id=347937

Gilles Caulier
Comment 6 caulier.gilles 2017-12-27 09:58:30 UTC
To solve this issue, we pending this patch to be included in Solid API officially for a future KF5 release :

https://phabricator.kde.org/D7401

Until this stage passed, nothing can be done in digiKam. After that, the MacOS digiKam PKG installer must be rebuild with relevant KF5 release including the Solid patch.

Gilles Caulier
Comment 7 caulier.gilles 2018-02-11 18:01:16 UTC
Git commit ff9080d97b74867368dba034449f3cb3bc3d0cab by Gilles Caulier.
Committed on 11/02/2018 at 17:55.
Pushed by cgilles into branch '6.0.0'.

Add KF5::Solid IOKit support patch from René under MacOS through Macports.

This will permit to support Apple devices under MacOS as under Linux with the PKG digiKam bundle 6.0.0.

This patch need to be tested:

1/ compilation with mast Solid framework code ;
2/ At run time with digiKam, with new removable device connected as a camera or an hardrive.

See https://phabricator.kde.org/D7401 for details.
Related: bug 347937
CCMAIL: rjvbertin@gmail.com

M  +2    -1    project/bundles/3rdparty/ext_kf5/CMakeLists.txt
A  +2581 -0    project/bundles/3rdparty/ext_kf5/solid-iokitsupport-macports.patch

https://commits.kde.org/digikam-software-compilation/ff9080d97b74867368dba034449f3cb3bc3d0cab
Comment 8 caulier.gilles 2020-08-02 12:36:16 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 9 caulier.gilles 2020-12-18 12:09:17 UTC
https://bugs.kde.org/show_bug.cgi?id=426938

--- Comment #4 from caulier.gilles@gmail.com ---
Hi,

digiKam 7.2.0-beta2 pre-release PKG installer now support BigSur and is
compiled with last stable Qt 5.15.2.

https://files.kde.org/digikam/

Problem still reproducible with this version.

Thanks and happy Christmas in advance

Best Regards

Gilles Caulier
Comment 10 Maik Qualmann 2022-08-26 21:27:22 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 458344, bug 444757
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