<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>395788</bug_id>
          
          <creation_ts>2018-06-23 13:31:09 +0000</creation_ts>
          <short_desc>If tags have a in them rename effectively deletes the file</short_desc>
          <delta_ts>2022-02-01 06:36:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>AdvancedRename-metadata</component>
          <version>5.8.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>vilkmail</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>6.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1763167</commentid>
    <comment_count>0</comment_count>
    <who name="">vilkmail</who>
    <bug_when>2018-06-23 13:31:09 +0000</bug_when>
    <thetext>I tried renaming an image to include the tags. One of the tags has a : in it, which I don&apos;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 &quot;test.jpg&quot; with &quot;Location: Paris&quot; as a tag.
2. Rename the file using &quot;[file] - [meta:Xmp.digiKam.TagsList]&quot;
3. Notice the file becomes &quot;test - Location&quot; with no file extension
4. File is now 0 bytes and the original image is completely lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763169</commentid>
    <comment_count>1</comment_count>
    <who name="">vilkmail</who>
    <bug_when>2018-06-23 13:45:34 +0000</bug_when>
    <thetext>This may have just been fixed in 5.9.0
https://bugs.kde.org/show_bug.cgi?id=391312</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763170</commentid>
    <comment_count>2</comment_count>
    <who name="">vilkmail</who>
    <bug_when>2018-06-23 13:53:44 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 391312 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775833</commentid>
    <comment_count>3</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2018-09-02 16:54:12 +0000</bug_when>
    <thetext>Not reproducible with 6.0.0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>