<?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>429664</bug_id>
          
          <creation_ts>2020-11-26 00:57:41 +0000</creation_ts>
          <short_desc>Windows file rename change case only fails badly</short_desc>
          <delta_ts>2022-02-01 06:23:22 +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-dialog</component>
          <version>7.2.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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>kdeb</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/commit/bb9c41193535cb79c5b77bded70c4883deab2a88</cf_commitlink>
          <cf_versionfixedin>7.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1978942</commentid>
    <comment_count>0</comment_count>
    <who name="">kdeb</who>
    <bug_when>2020-11-26 00:57:41 +0000</bug_when>
    <thetext>SUMMARY

Rename from context menu of image. 
If you only change case of part of the name you get an error dialog with 
options to &apos;Rename again&apos; &apos;Overwrite&apos; &apos;Cancel&apos;

&apos;Rename again&apos; will fail again.
&apos;Overwrite&apos; will fail and the image WILL BE DELETED (and not to the recycle bin).
 

Digikam current weekly x64
SOFTWARE/OS VERSIONS
Windows: Win 10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978943</commentid>
    <comment_count>1</comment_count>
    <who name="">kdeb</who>
    <bug_when>2020-11-26 01:01:26 +0000</bug_when>
    <thetext>Later... looks like a temp renamed version of the deleted file goes into .dtrash so perhaps not completely lost.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979016</commentid>
    <comment_count>2</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-11-26 06:43:43 +0000</bug_when>
    <thetext>Right, the file will definitely be moved to the digiKam recycle bin. With the Qt API we can hardly tell whether it is an &quot;image.jpg&quot; or an &quot;Image.jpg&quot;. Both queries return a yes in a Windows file system, because both files are identical. Let&apos;s see, only changing in upper and lower case will be difficult to fix.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1979018</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2020-11-26 07:08:33 +0000</bug_when>
    <thetext>Git commit bb9c41193535cb79c5b77bded70c4883deab2a88 by Maik Qualmann.
Committed on 26/11/2020 at 07:07.
Pushed by mqualmann into branch &apos;master&apos;.

read dir to check for file name to fix renaming in Windows
FIXED-IN: 7.2.0

M  +2    -1    NEWS
M  +7    -1    core/libs/iojobs/iojob.cpp

https://invent.kde.org/graphics/digikam/commit/bb9c41193535cb79c5b77bded70c4883deab2a88</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>