https://bugs.kde.org/show_bug.cgi?id=503885
Bug ID: 503885 Summary: Fails to write to sidecar file, leaving it corrupt Classification: Applications Product: digikam Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Metadata-Sidecar Assignee: digikam-bugs-n...@kde.org Reporter: kristian.hermann.k...@gmail.com Target Milestone: --- Created attachment 181029 --> https://bugs.kde.org/attachment.cgi?id=181029&action=edit Sidecar file SUMMARY When adding a keyword, digikam fails and leaves the side car file corrupt. The bug is not reproducible by following the below steps STEPS TO REPRODUCE 1. Use app image digiKam-8.7.0-20250507T100042-Qt6-x86-64.appimage 2. Configure Digikam Settings => See attached images 3. Add the attached image 2025-05-02_131645.jpg and 2025-05-02_131645.jpg.xmp 4. Add a new tag to the image => "Keyword/Öl" OBSERVED RESULT Digikam fails writing the sidecar file, it will now only contain 1 line: <?xpacket begin="\ufeff" id="W5M0MpCehiHzreSzNTczkc9d"?> The debug output on the terminal indicates the problem as: "XMP Toolkit error 102: Unknown namespace prefix for qualified name" The expanded log is: Digikam::ExifToolParser::exifToolAvailable: Check ExifTool availability: true Digikam::ExifToolParser::Private::startProcess: ExifTool "Load Chunks" "-TagsFromFile /home/krikar/Pictures/2025-05-02_131645.jpg -all:all -icc_profile -o -.exv" Digikam::ExifToolProcess::Private::readOutput: ExifToolProcess::readOutput(): ExifTool command completed Digikam::ExifToolParser::cmdCompleted: ExifTool complete command for action "Load Chunks" with elasped time (ms): 92 Digikam::ExifToolParser::cmdCompleted: EXV chunk size: 65578 Digikam::ExifToolParser::cmdCompleted: ExifTool parsed command for action "Load Chunks" 1 properties decoded Digikam::ExifToolParser::Private::jumpToResultCommand: ExifTool complete "Load Chunks" for "/home/krikar/Pictures/2025-05-02_131645.jpg" Digikam::DMetadata::loadUsingExifTool: Metadata chunk loaded with ExifTool Digikam::DMetadata::load: Loading metadata with "ExifTool" backend from "/home/krikar/Pictures/2025-05-02_131645.jpg" Digikam::MetadataHub::writeTags: Writing tags Digikam::MetadataHub::writeTags: -------------------------- New Keywords QList("\Uffffffff", "Restaurante Casa del Mar") Digikam::MetaEngine::setIptcKeywords: "/home/krikar/Pictures/2025-05-02_131645.jpg" ==> New Iptc Keywords: QList("Restaurante Casa del Mar", "\Uffffffff") Digikam::MetaEngine::save: MetaEngine::metadataWritingMode 1 Digikam::MetaEngine::save: Will write XMP sidecar for file "2025-05-02_131645.jpg" Digikam::MetaEngine::Private::saveUsingExiv2: wroteComment: false Digikam::MetaEngine::Private::saveUsingExiv2: wroteEXIF: true Digikam::MetaEngine::Private::saveUsingExiv2: wroteIPTC: true Digikam::MetaEngine::Private::saveUsingExiv2: wroteXMP: true Digikam::MetaEngine::Private::printExiv2MessageHandler: Exiv2 ( 3 ) : XMP Toolkit error 102: Unknown namespace prefix for qualified name Digikam::MetaEngine::Private::printExiv2MessageHandler: Exiv2 ( 3 ) : Failed to encode XMP metadata. Digikam::MetaEngine::save: Metadata for file "2025-05-02_131645.jpg" written to XMP sidecar. Digikam::ExifToolParser::exifToolAvailable: Check ExifTool availability: true Digikam::ExifToolParser::Private::startProcess: ExifTool "Load Chunks" "-TagsFromFile /home/krikar/Pictures/2025-05-02_131645.jpg -all:all -icc_profile -o -.exv" Digikam::ExifToolProcess::Private::readOutput: ExifToolProcess::readOutput(): ExifTool command completed Digikam::ExifToolParser::cmdCompleted: ExifTool complete command for action "Load Chunks" with elasped time (ms): 81 Digikam::ExifToolParser::cmdCompleted: EXV chunk size: 65578 Digikam::ExifToolParser::cmdCompleted: ExifTool parsed command for action "Load Chunks" 1 properties decoded Digikam::ExifToolParser::Private::jumpToResultCommand: ExifTool complete "Load Chunks" for "/home/krikar/Pictures/2025-05-02_131645.jpg" Digikam::DMetadata::loadUsingExifTool: Metadata chunk loaded with ExifTool Digikam::DMetadata::load: Loading metadata with "ExifTool" backend from "/home/krikar/Pictures/2025-05-02_131645.jpg" Digikam::DImg::load: "/home/krikar/Pictures/2025-05-02_131645.jpg" : "JPEG" file identified EXPECTED RESULT The sidecar file to be updated with the new keyword "Öl" SOFTWARE/OS VERSIONS Digikam: digiKam-8.7.0-20250507T100042-Qt6-x86-64.appimage Operating System: NixOS 25.05 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.13.0 Qt Version: 6.9.0 Kernel Version: 6.12.26 (64-bit) Graphics Platform: Wayland Processors: 32 × 13th Gen Intel® Core™ i9-13900KF Memory: 94.1 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3050 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.