Bug 395788

Summary: If tags have a in them rename effectively deletes the file
Product: [Applications] digikam Reporter: vilkmail
Component: AdvancedRename-metadataAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: caulier.gilles
Priority: NOR    
Version: 5.8.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 6.0.0

Description vilkmail 2018-06-23 13:31:09 UTC
I tried renaming an image to include the tags. One of the tags has a : in it, which I don't think is a viable character for a filename.

The process still ran (no warning), but it ends up creating a 0 byte file named with everything up until the : character, with no file extension. This completely deletes the original image.

1. Create a file "test.jpg" with "Location: Paris" as a tag.
2. Rename the file using "[file] - [meta:Xmp.digiKam.TagsList]"
3. Notice the file becomes "test - Location" with no file extension
4. File is now 0 bytes and the original image is completely lost.
Comment 1 vilkmail 2018-06-23 13:45:34 UTC
This may have just been fixed in 5.9.0
https://bugs.kde.org/show_bug.cgi?id=391312
Comment 2 vilkmail 2018-06-23 13:53:44 UTC

*** This bug has been marked as a duplicate of bug 391312 ***
Comment 3 caulier.gilles 2018-09-02 16:54:12 UTC
Not reproducible with 6.0.0