Bug 374516 - Persons metadata are not updated after a tag removed
Summary: Persons metadata are not updated after a tag removed
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-MetadataEdit (show other bugs)
Version: 5.3.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 23:44 UTC by Dav
Modified: 2018-03-27 21:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments
Exiftool output before removing unappropriate person tag (12.38 KB, text/plain)
2017-01-03 23:44 UTC, Dav
Details
Exiftool output after removing unappropriate tag and applying metadata (12.38 KB, text/plain)
2017-01-03 23:45 UTC, Dav
Details

Note You need to log in before you can comment on or make changes to this bug.
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