Bug 367642 - IPTC/XMP metadata not saved to image on exit when Lazy Sync is on
Summary: IPTC/XMP metadata not saved to image on exit when Lazy Sync is on
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 5.1.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 14:18 UTC by Stefano
Modified: 2017-08-13 07:30 UTC (History)
3 users (show)

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


Attachments
attachment-31871-0.html (108 bytes, text/html)
2016-08-28 11:45 UTC, Stefano
Details
attachment-6005-0.html (179 bytes, text/html)
2016-08-28 14:28 UTC, Stefano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano 2016-08-21 14:18:40 UTC
I've just found that when you have "Lazy Synchronization" enabled, when you tag a face in the image, the following occurs:

1. If you MANUALLY write the pending changes with the dedicated button, IPTC/XMP tags are saved to the image correctly
2. If you exit digikam, the XMP (with the face region) won't be saved to the image as advertised: you will have the face tagged (probably because it's in digikam DB), but NOT in the file itself.

Reproducible: Always
Comment 1 Stefano 2016-08-24 06:34:50 UTC
This causes a data loss somewhat, have you had time to investigate?

Thanks.
Comment 2 Maik Qualmann 2016-08-28 10:32:35 UTC
Gilles,

We have only the manual method in the status bar. Was it really so thought that the changes are automatically executed at the end? I would suggest a message box at the end, if still pending items exist.

Maik
Comment 3 caulier.gilles 2016-08-28 11:41:23 UTC
Maik,

Yes, i see this behavior on other proprietary software which have the same feature.

Gilles
Comment 4 Stefano 2016-08-28 11:45:56 UTC
Created attachment 100816 [details]
attachment-31871-0.html

Btw, warning or not, the fact is that data is not saved...
Comment 5 Maik Qualmann 2016-08-28 14:03:59 UTC
Question: when you press the button in the status bar, are not written all the metadatas? This problem I can not reproduce here. All metadatas (faces, rating, tags) are written to the files.

Maik
Comment 6 Stefano 2016-08-28 14:28:13 UTC
Created attachment 100821 [details]
attachment-6005-0.html

The problem does not occur when you press the button, but when you exit
without doing it, as described in the first message.
Comment 7 Maik Qualmann 2016-08-29 17:38:06 UTC
Git commit 1a61759600274ef741f8849ed683eb2eb452154a by Maik Qualmann.
Committed on 29/08/2016 at 17:36.
Pushed by mqualmann into branch 'master'.

apply pending metadata at end
FIXED-IN: 5.2.0

M  +2    -1    NEWS
M  +7    -3    app/main/digikamapp.cpp
M  +39   -6    libs/fileactionmanager/metadatahubmngr.cpp
M  +3    -1    libs/fileactionmanager/metadatahubmngr.h

http://commits.kde.org/digikam/1a61759600274ef741f8849ed683eb2eb452154a
Comment 8 Maik Qualmann 2016-08-31 18:34:01 UTC
*** Bug 368036 has been marked as a duplicate of this bug. ***