Bug 464721 - Set multiple root album paths for network albums using the GUI
Summary: Set multiple root album paths for network albums using the GUI
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Collections (show other bugs)
Version: 7.9.0
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-24 02:45 UTC by michael2macdonald
Modified: 2023-01-25 14:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michael2macdonald 2023-01-24 02:45:29 UTC
SUMMARY
When accessing a remote database from multiple installations of Digikam, each installation typically has a different mount path for network albums (for example, "M:\Photos" and "/mount/share/photos"). This is always the case when the installations are on different operating systems (such as Linux and windows).

By editing the database table, digikam supports multiple mount paths by picking the first valid mount path in the list:
"networkshareid:?mountpath=/media/share/Photos&mountpath=M:\Photos"

But there is currently no way to add, remove, or view multiple mount paths in the GUI.

EXPECTED BEHAVIOR
Digikam should allow users to add, remove, or view multiple mount paths for a root album in the GUI settings.
Comment 1 Maik Qualmann 2023-01-24 06:46:53 UTC
This is already implemented in digiKam-8.0.0-Beta1.

Maik
Comment 2 caulier.gilles 2023-01-24 08:45:27 UTC
Take also a look to the online documentation (based on next 8.0.0 release):

https://docs.digikam.org/en/setup_application/collections_settings.html#setup-root-album-folders

Gilles Caulier
Comment 3 Maik Qualmann 2023-01-24 12:12:29 UTC
Hi Gilles,

Maybe you should use an image that also has a network collection. Then you see the "+" icon to explain that further network root paths can be attached, e.g. for other operating systems.

Maik
Comment 4 caulier.gilles 2023-01-24 13:01:21 UTC
Git commit bb37444dcc0d0d50d8b2f926f9a102aa0f28d981 by Gilles Caulier.
Committed on 24/01/2023 at 13:00.
Pushed by cgilles into branch 'master'.

update Collection Setup View with removable and network devices

M  +-    --    setup_application/images/setup_collection_entries.webp

https://invent.kde.org/documentation/digikam-doc/commit/bb37444dcc0d0d50d8b2f926f9a102aa0f28d981
Comment 5 michael2macdonald 2023-01-24 17:36:53 UTC
Thank you everyone for your help. I saw an issue that fixed the backend part but not the GUI. Thanks for pointing it out and for being helpful rather than rude! I am new to submitting and searching for bugs using the KDE system.
Comment 6 Maik Qualmann 2023-01-24 18:49:34 UTC
@Gilles, Hmm, the network collection doesn't show the "+" icon, because only after accepting the settings and adding the base network collection is it possible to attach more. Can you maybe add an "empty" folder as a network collection (so you don't have to scan your NAS) and then take the screenshot again?

Maik
Comment 7 caulier.gilles 2023-01-25 08:43:42 UTC
Git commit 0fbda5b4ded498e57fb34cf027a49ac3b18d58b1 by Gilles Caulier.
Committed on 25/01/2023 at 08:42.
Pushed by cgilles into branch 'master'.

update collections settings screenshot with Plus button avaialble for Network shares

M  +4    -2    setup_application/collections_settings.rst
M  +-    --    setup_application/images/setup_collection_entries.webp

https://invent.kde.org/documentation/digikam-doc/commit/0fbda5b4ded498e57fb34cf027a49ac3b18d58b1
Comment 8 caulier.gilles 2023-01-25 08:45:17 UTC
Maik,

What's the goal of this "+" button for network shares ? Typically, a collection == a path. Why this difference about network shares ?

Gilles
Comment 9 caulier.gilles 2023-01-25 08:49:51 UTC
Hum, i think i understand. As the path registration of a collection is stored in database, in case of database shared though a NAS for multiple client computer running digiKam, the path for the same network share can be different (eg. Linux and Windows). This allows to register 2 paths for the same collection in the database. 

If i'm right, how digiKam know which right path to use on client computer ? Just be testing the presence of this mount path on client computer ?

Gilles
Comment 10 Maik Qualmann 2023-01-25 11:33:30 UTC
Correct, the corresponding paths are tested to see if they exist on the client computer. It is unlikely that "E:\NasFolder" exists on Linux or "/NasFolder" on Windows. By the way, the code for this has been in digiKam for a very long time. I think Marcel added it. Previously, users edited this directly in the DB. Now it is possible in the GUI.

Maik
Comment 11 caulier.gilles 2023-01-25 12:38:06 UTC
Great i will patch the doc accordingly. It's an important feature.

Gilles
Comment 12 caulier.gilles 2023-01-25 13:20:26 UTC
Maik,

In the case of we host collections and database on a NAS, to share files between different digiKam client (eq. one Linux, one Windows, and one macOS), how much we deal with the multiple paths settings here. Does all digiKam client must have the same settings about paths to be homogeneous ?

Gilles
Comment 13 Maik Qualmann 2023-01-25 14:21:01 UTC
I don't know if I understand it correctly.
Let's start with the Linux user as an example.
He adds the first entry to the network collection:

/mnt/nas-Images

With the "+" icon, the macOS user now adds its base path to the collection:

/Volumes/data/NAS

The Windows user:

X:\NAS-digiKam

Other Windows users would also be conceivable if the NAS has a different mount point or used by UNC path.

It is important that all base paths then refer to the same collection.

Maik
Comment 14 caulier.gilles 2023-01-25 14:37:42 UTC
Git commit 8b6c5063020bde280ef09928a489ef314561656e by Gilles Caulier.
Committed on 25/01/2023 at 14:36.
Pushed by cgilles into branch 'master'.

Add more details about network shared collection

M  +12   -2    setup_application/collections_settings.rst

https://invent.kde.org/documentation/digikam-doc/commit/8b6c5063020bde280ef09928a489ef314561656e
Comment 15 caulier.gilles 2023-01-25 14:39:53 UTC
Maik,

Look the new chapter about the Network Shares Specificity.

https://docs.digikam.org/en/setup_application/collections_settings.html#the-network-shares-specificity

Gilles