Bug 186308

Summary: Moving tags in hierarchy not reflected in XMP metadata "TagsList"
Product: [Applications] digikam Reporter: krienke
Component: Tags-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: marcel.wiesweg
Priority: NOR    
Version: 0.10.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0
Sentry Crash Report:

Description krienke 2009-03-06 08:36:15 UTC
Version:           0.10rc2 (using KDE 4.2.0)
OS:                Linux
Installed from:    SuSE RPMs

Consider you have tags organized in a hierarchy. digikams metadata option "Save metadata to files" is turned on. Say a group of photos has the tag "/a/b/tag1" assigned. In XMP metadata this hierarchy is reflected in the value of Xmp.digikam.TagsList with the value of "/a/b/tag1".

Now think you want to reorganize your tag structure and move tag1 from /a/b to /x/y by drag and drop in digikams tag sidetab (I used the tag-tab on the left side of the main window to do this).

As a result after the move the XMP metadata Xmp.digikam.TagsList value of of the photos that have "tag1" set should be updated to 
"/x/y/tag12 to refelct the new hierarchy. 

However this does not happen. TagsList for these photos will still have the old value "/a/b/tag1".  You can make it happen by selecting tag1 so all photos are shown that have this tag set and then do a "Album->resync files with database". This works. However I think it should happen automatically when moving tags around.

Thanks
Rainer
Comment 1 krienke 2009-03-06 08:40:34 UTC
There is a small typo in my initial description. At one place I wrote "/x/y/tag12". I meant of course "/x/y/tag1". Sorry.
Comment 2 Marcel Wiesweg 2009-03-06 23:33:53 UTC
I think there is a longstanding bug about the same problem, but I cant find it at the moment.

I would like to have some pieces of infrastructure in place before implementing this, remember a simple tag rename might result in rewriting metadata of thousands of pictures, that's not trivial.
Comment 3 caulier.gilles 2009-06-16 10:44:01 UTC
SVN commit 982571 by cgilles:

This is a long standing bug about Tag synchronization to XMP and IPTC keywords.
To wrap around this problem, we remove all previous keywords before to apply new sets.
Marcel, i think MetadataHub is right : new and old tags lists are fine. Problem must be in libkexiv2.
Anyway this patch fix the problem for the moment.
BUGS: 175321
BUGS: 159158
BUGS: 141912
BUGS: 186308
CCMAIL: marcel.wiesweg@gmx.de


 M  +7 -4      metadatahub.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=982571