Bug 362268 - Digikam database gets corrupted when metadata are written to sidecar files
Summary: Digikam database gets corrupted when metadata are written to sidecar files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 5.0.0
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 20:45 UTC by Knut Hildebrandt
Modified: 2019-07-26 17:26 UTC (History)
2 users (show)

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


Attachments
View of additional folders (albums) in digikam (148.44 KB, image/jpeg)
2016-04-25 20:48 UTC, Knut Hildebrandt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Hildebrandt 2016-04-25 20:45:47 UTC
I just discovered that after writing changes of metadata to xmp sidecar files causes that in every affected album a subfolder appears which holds exactly the same pictures. The subfolder does not have a name. A closer look at the database revealed that for every picture in the original folder a second entry was written to the database. Deleting the subfolder deletes the whole album including the folder holding the pictures on the harddisk.

Reproducible: Always

Steps to Reproduce:
1. open digikam
2. change metadata (tag, title, etc.) of any image (it do not have to be all, one is sufficient) in album
3. save changes and write them to sidecar file (in my case nef aka nikon raw files)

Actual Results:  
Subfolder appears as described. At the same time for all pictures in the album a second entry is written to the database.

Expected Results:  
No subfolder appears and the old entries in database are changed instead of being copied.

On my system 5.0.0_beta3-1 is installed. But that did not change for a while and it worked with this version until recently. If you let me know which other components are involved I could look for recent updates of these.
Comment 1 Knut Hildebrandt 2016-04-25 20:48:43 UTC
Created attachment 98594 [details]
View of additional folders (albums) in digikam

View of digikam frontend which shows the added folders (albums) in each album that was affected.
Comment 2 Maik Qualmann 2016-04-25 21:15:32 UTC
You have Qt-5.6.0? If yes, use the current digiKam5-beta6. See bug 361339

Maik
Comment 3 Knut Hildebrandt 2016-04-25 21:33:18 UTC
You are right. Chakra uses 5.6. Will file a bug report against the chakra repos.

Thanks for the quick response.
Comment 4 Maik Qualmann 2016-04-29 20:34:07 UTC

*** This bug has been marked as a duplicate of bug 361339 ***
Comment 5 caulier.gilles 2019-07-26 17:26:33 UTC
Fixed with bug #361339