Bug 279710 - Setting GPS coordinates in GPSSync removes other metadata in sidecar files
Summary: Setting GPS coordinates in GPSSync removes other metadata in sidecar files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Sidecar (show other bugs)
Version: 2.6.0
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 04:56 UTC by falolaf
Modified: 2018-08-11 09:27 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.6.0


Attachments
xmp sidecar with geo location metadata. (2.34 KB, application/octet-stream)
2012-04-03 03:24 UTC, falolaf
Details
xmp sidecar with tags added as metadata (2.89 KB, application/octet-stream)
2012-04-03 03:25 UTC, falolaf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description falolaf 2011-08-09 04:56:22 UTC
Version:           2.0.0 (using KDE 4.7.0) 
OS:                Linux

I have choosen to:
'Save image tags as "Keywords" in metadata embedded in files'
'Write to sidecar only'

If I have added some tags to an image, the xmp-file has been created
and updated with the tags.
If I now open up Geo-location and add coordinates to the image and
click apply, the xmp-file has been updated to contain only the
coordinates.
If I now for the image choose to "Write Metadata to Image", then the
tags are put back but the coordinates has been removed.



Reproducible: Always

Steps to Reproduce:
See details!


Expected Results:  
Geo-location and other metadata should coexist in the xmp sidecar file.
Comment 1 falolaf 2012-02-14 13:00:25 UTC
Any proggress on this issue?
Comment 2 Marcel Wiesweg 2012-03-20 20:33:25 UTC
With all recent sidecar fixes in digikam and our libraries, this problem seems no longer reproducible.
Comment 3 falolaf 2012-04-03 03:24:18 UTC
Created attachment 70097 [details]
xmp sidecar with geo location metadata.
Comment 4 falolaf 2012-04-03 03:25:16 UTC
Created attachment 70098 [details]
xmp sidecar with tags added as metadata
Comment 5 falolaf 2012-04-03 03:30:09 UTC
I have now tested with 2.6.0 beta 3 and can still trigger this bug. If I localize an image the xmp sidecar is updated with gps coordinates and all other metadata is wiped from the file. If I then do write metadata to file the other metadata is written to the file and the gps coordinates is wiped from the file. In my case I have choosen to write tags to the file.

Added two xmp files, one with gps coordinates and one with the tags metadata added.
Comment 6 falolaf 2012-04-03 03:33:34 UTC
Don't know what status to set it to. It's not fiexed here anyway...
Comment 7 Marcel Wiesweg 2012-04-03 20:05:38 UTC
What is your libkexiv2 version?
Comment 8 falolaf 2012-04-04 03:14:32 UTC
2.1.0. 

I built everything in beta3 from the root. Now I see that the version in beta3 seems to be 2.3.0. Must have done something wrong. 
I have installed beta3 in parallel with 2.5.0 so this build must have picked up the old version.
Comment 9 falolaf 2012-06-11 11:55:29 UTC
I have now tested with digiKam 2.6.0 and libkexiv2 2.3.0. Still no luck with this. 

If I geo-locate the xmp is overwritten. If I then add/remove some tags the xmp-file is overwritten again.

I have built myself on kde 4.8.4.

What else should I do?
Comment 10 Florian 2014-02-08 13:01:17 UTC
not fixed here, with digikam 3.5.0. Cf. bugs #256179, #280058?
Comment 11 Michael G. Hansen 2014-02-10 20:36:18 UTC
Hi,

as with bug #280058, I can reproduce this one when I set "Write to sidecar only" but not "Read from sidecar files". Enabling "Read from sidecar files" solves the issue for me. I will add a warning to GPSSync about this problem, and I think we should put the warning also into the settings dialog of digikam.

Can somebody who is also seeing this problem confirm this?

Best regards,

Michael
Comment 12 Michael G. Hansen 2014-02-10 21:26:57 UTC
Git commit 78dce22ad184f63950491b4ff01f0b545f1ea55c by Michael Georg Hansen.
Committed on 10/02/2014 at 21:26.
Pushed by mghansen into branch 'master'.

Warn about dangerous sidecar settings in the host application.
Related: bug 280058

M  +38   -1    gpssync/plugin_gpssync.cpp
M  +2    -1    gpssync/plugin_gpssync.h

http://commits.kde.org/kipi-plugins/78dce22ad184f63950491b4ff01f0b545f1ea55c