Bug 395788 - If tags have a in them rename effectively deletes the file
Summary: If tags have a in them rename effectively deletes the file
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-metadata (show other bugs)
Version: 5.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-23 13:31 UTC by vilkmail
Modified: 2022-02-01 06:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

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