Bug 374516

Summary: Persons metadata are not updated after a tag removed
Product: [Applications] digikam Reporter: Dav <davm6101>
Component: Plugin-Generic-MetadataEditAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: davm6101, metzpinguin
Priority: NOR    
Version: 5.3.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0
Attachments: Exiftool output before removing unappropriate person tag
Exiftool output after removing unappropriate tag and applying metadata

Description Dav 2017-01-03 23:44:01 UTC
Created attachment 103183 [details]
Exiftool output before removing unappropriate person tag

Hello,

My wife has changed her name and so, I try to rename all her embedded tags within digikam.
First, I have tried to rename her tag in the metadata person tag. I was thinking it was ok.

But after reloading metadata from files, I see that on some files, pictures have both her old and new person tag.
So I try now to remove the old tag.
Before applying update, I've collected exif metadata with exiftool (exiftool /home/marc/pictures/img_6654.cr2). File has been attached under before.txt.
In digikam, in one picture which have both the new and old tag, I remove from the picture her old name.
Then I click to "apply metadata in picture" from menu item. 
After applying tag, I have collected metadata with exiftool. File has been attached under afterupdate.txt.

Under digikam, My wife is now known has her new name. But If I refresh metadata (under menu item > reload metadata from file), she still known under the two names.

I was thinking of a permission issue, but file have rw for every one.
Comment 1 Dav 2017-01-03 23:45:11 UTC
Created attachment 103184 [details]
Exiftool output after removing unappropriate tag and applying metadata
Comment 2 Maik Qualmann 2018-03-27 21:28:29 UTC
Git commit f748bdaa1015277e2c082c94b36dcaba48a38f76 by Maik Qualmann.
Committed on 27/03/2018 at 21:03.
Pushed by mqualmann into branch 'master'.

write metadata to images after move, rename or delete tags,
we ask the user if > 100 images are affected
Related: bug 386224
FIXED-IN: 6.0.0

M  +3    -1    NEWS
M  +69   -2    core/libs/album/albummanager.cpp
M  +5    -1    core/libs/album/albummanager.h
M  +2    -2    core/tests/albummodel/albummodeltest.cpp

https://commits.kde.org/digikam/f748bdaa1015277e2c082c94b36dcaba48a38f76