Bug 453630 - Metadata doesn 't always keep it's hierarchy when written with exiftool
Summary: Metadata doesn 't always keep it's hierarchy when written with exiftool
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-ExifTool (show other bugs)
Version: 8.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-10 14:43 UTC by Rob D
Modified: 2022-05-18 21:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob D 2022-05-10 14:43:31 UTC
SUMMARY
***
When writing tags to files, additional tags are created at a higher level.

For example, the tag  "People/Bob"  gets written as   "People/Bob"  and also "Bob".

Also, "Rooms|Settings/Den" can be changed to "Rooms/Settings/Den"

Both face tags and non-face tags are affected. 

Could this be a problem with escaping special characters when calling exiftool?
***


STEPS TO REPRODUCE
1. Write a tag with hierarchy
2. 
3. 

OBSERVED RESULT
Additional tags are created outside the intended hierarchy.  

EXPECTED RESULT
Only the original tags specified.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora  35


ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-05-10 15:12:54 UTC
Please DO NOT currently use digiKam-8.0.0 in conjunction with enabled writing of metadata with ExifTool. digiKam from git/master is currently not suitable for production environments.

Maik
Comment 2 Maik Qualmann 2022-05-10 21:12:24 UTC
Which git/master digiKam-8.0.0 version are you using exactly? I just tested it here quickly, but I don't see any difference whether the tags were written with Exiv2 or ExifTool. it looks correct.

Maik
Comment 3 Rob D 2022-05-10 21:33:15 UTC
(In reply to Maik Qualmann from comment #2)
> Which git/master digiKam-8.0.0 version are you using exactly? I just tested
> it here quickly, but I don't see any difference whether the tags were
> written with Exiv2 or ExifTool. it looks correct.
> 
> Maik

That was from Git branch 04406d47f0

I just wanted to give a heads-up on the issue.   I will try to determine what conditions combine to create the problem.
Comment 4 Maik Qualmann 2022-05-18 21:08:26 UTC
With the current implementation of the ExifTool parser as a singleton function, I can no longer reproduce any problems. Before, for example, when importing images, the orientation flag was not written for all images. I'll close the bug, reopen it if necessary.

Maik