Bug 504711 - Sync Metadata and Database ignores album selection
Summary: Sync Metadata and Database ignores album selection
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Metadata (other bugs)
Version First Reported In: 8.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-23 18:28 UTC by Tom Cunningham
Modified: 2025-05-24 00:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Cunningham 2025-05-23 18:28:05 UTC
SUMMARY
In the Maintenance window, if an album is specified at the top, then Sync Metadata and Database is checked at the bottom, after pressing OK digikam will begin syncing files that are not in the specified album.

STEPS TO REPRODUCE
1.  Open the Maintenance window under Tools.
2. Under "Common Options" -> "Process items from:", select a single album.
3. At the bottom of the Maintenance window, check "Sync Metadata and Database". Insure no other boxes are checked in the Maintenance window.
4. Press OK.

OBSERVED RESULT
DigiKam begins processing files in random albums, not just the selected one.

EXPECTED RESULT
I expected digiKam to synchronize the metadata only in the specified album with the database.

SOFTWARE/OS VERSIONS
Windows: Windows 11 Pro 24H2
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2025-05-23 18:58:53 UTC
This has been reported several times, but I've never been able to reproduce it. Note that we've had a recursive selection for some time now. If it's not disabled first, all sub-albums will also be selected. Also, check to see if you've selected any tags in the tag selector; these images will also be synced.

Maik
Comment 2 Tom Cunningham 2025-05-23 19:22:45 UTC
(In reply to Maik Qualmann from comment #1)
> This has been reported several times, but I've never been able to reproduce
> it. Note that we've had a recursive selection for some time now. If it's not
> disabled first, all sub-albums will also be selected. Also, check to see if
> you've selected any tags in the tag selector; these images will also be
> synced.
> 
> Maik

I did have the People tag checked, which probably made the process take so long. I unchecked that, and digiKam still says I have 15 tags selected. Where? All the tag boxes are unchecked. I also unchecked "Recursive selection" even though there are no sub-albums in this case. When I check "Sync Metadata and Databases" and press OK, it processes 106 files, none of which are in the album I selected at the top.
Comment 3 Maik Qualmann 2025-05-23 19:34:45 UTC
If it shows that 15 tags are selected, that's definitely the case. Use the Clear Tags button to the far right of the selection box to deselect all selected tags.

Maik
Comment 4 Tom Cunningham 2025-05-24 00:26:36 UTC
That did the trick. I wonder what tags they were since none of the categories were checked? I'm trying to verify that changing the face regions in the metadata will alter the behavior of mousing over a face (e.g. in the case of a duplicate face tag). Even if the extra face region is eliminated, mousing over a face still shows two tags. That's why I thought syncing with the databases might help, but they both still show up.